Package com.sodius.oslc.server.process
Class GlobalConfigurationResolver
java.lang.Object
com.sodius.oslc.server.process.GlobalConfigurationResolver
- Direct Known Subclasses:
DeliverableGlobalConfigurationResolver
Allows to resolve
Global Configurations used by application artifacts
and to determine the Global Configuration awareness of a container.- Since:
- 3.7.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGlobalConfigurationAware(ApplicationContainer container, URI domain) Determines theGlobal Configuration awarenessof an application container.static GlobalConfigurationResolverGets the GC resolver implementation.abstract Optional<ConfigurationTrace> resolve(ApplicationArtifact artifact, ApplicationContainer container, LinkingType linkingType) Resolves (if any) the (traced) Global Configuration used (URI and title), by an application artifact, for linking.static voidsetInstance(GlobalConfigurationResolver resolver) Sets the application GC resolver implementation.
-
Constructor Details
-
GlobalConfigurationResolver
public GlobalConfigurationResolver()
-
-
Method Details
-
getInstance
Gets the GC resolver implementation.- Returns:
- the application GC resolver implementation if
specified; otherwise, the default implementation which always resolves an emptyOptional.
-
setInstance
Sets the application GC resolver implementation. Applications not using a GC are not required to call this method, an implementation, which always resolves an emptyOptional, is set by default.- Parameters:
resolver- application GC resolver.
-
resolve
public abstract Optional<ConfigurationTrace> resolve(ApplicationArtifact artifact, ApplicationContainer container, LinkingType linkingType) Resolves (if any) the (traced) Global Configuration used (URI and title), by an application artifact, for linking.- Parameters:
artifact- the application artifact.container- the application artifact container.linkingType- the linking type.- Returns:
- an empty
Optionalif no Global Configuration is being used; the traced reference otherwise. - Throws:
OslcWebApplicationException- if the Global Configuration cannot be determined.- Since:
- 3.8.0
-
getGlobalConfigurationAware
public GlobalConfigurationAware getGlobalConfigurationAware(ApplicationContainer container, URI domain) Determines theGlobal Configuration awarenessof an application container.- Parameters:
container- the application artifact container.domain- the domain URI of the application artifact container.- Returns:
- the Global Configuration awareness of the
container. - Since:
- 3.8.0
-