Interface IOslcCustomNamespaceProvider


public interface IOslcCustomNamespaceProvider
This interface provides a way to add custom prefixes at runtime. As it is used inside the OslcSchema annotation, every time that this annotation is read during the response writing it is also checked for a class definition in the OslcSchema.customNamespaceProvider() field and if there is a concrete implementation of this interface, a new instance of this implementation will be created and the getCustomNamespacePrefixes() invoked. All values obtained will be added to the namespace prefix list, thereafter used in the response writing. Note that if the getCustomNamespacePrefixes() map, hereafter called customMap, contains keys that are equal to the ones defined in OslcSchema.value(), the customMap's key=value will take precedence over the others.
Author:
Daniel Figueiredo Caetano
See Also:
  • Method Details

    • getCustomNamespacePrefixes

      Map<String,String> getCustomNamespacePrefixes()
      Gets a map where the key = prefix and value = namespace.
      Returns:
      null if there are no custom prefixes to add.