Class PropertyScopesImpl
java.lang.Object
org.openwms.core.preferences.impl.PropertyScopesImpl
- All Implemented Interfaces:
PropertyScopes
Default implementation of
PropertyScopes registry. Collects all scopes from the PropertyScopeRegistrar beans
discovered at startup. The built-in scopes are contributed by the DefaultPropertyScopeRegistrar unless the consumer
defines an own registrar bean, in which case the consumer controls the complete scope set. An empty resulting scope set is
a misconfiguration and rejected at startup.- Author:
- Heiko Scherrer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Returns a collection of all registered scopes.booleanisRegistered(String name) Checks whether a scope with the given name is registered.Resolves a scope by name.
-
Field Details
-
scopes
-
-
Constructor Details
-
PropertyScopesImpl
PropertyScopesImpl(List<PropertyScopeRegistrar> registrars)
-
-
Method Details
-
isRegistered
Description copied from interface:PropertyScopesChecks whether a scope with the given name is registered.- Specified by:
isRegisteredin interfacePropertyScopes- Parameters:
name- the scope name to check- Returns:
- true if the scope is registered, false otherwise
-
resolve
Description copied from interface:PropertyScopesResolves a scope by name. Only registered scopes are resolved successfully.- Specified by:
resolvein interfacePropertyScopes- Parameters:
name- the scope name- Returns:
- the PropertyScope instance
-
all
Description copied from interface:PropertyScopesReturns a collection of all registered scopes.- Specified by:
allin interfacePropertyScopes- Returns:
- all registered scopes
-