Class DefaultPropertyScopeRegistrar
java.lang.Object
org.openwms.core.preferences.impl.DefaultPropertyScopeRegistrar
- All Implemented Interfaces:
PropertyScopeRegistrar
A DefaultPropertyScopeRegistrar registers the four generic built-in scopes APPLICATION, MODULE, ROLE, and USER. It is
contributed by the auto-configuration only when the consumer does not define any
PropertyScopeRegistrar bean itself.
As soon as a consumer defines at least one registrar bean, this default backs off entirely and the consumer controls the
complete set of registered scopes, including whether the built-ins remain available.- Author:
- Heiko Scherrer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultPropertyScopeRegistrar
public DefaultPropertyScopeRegistrar()
-
-
Method Details
-
register
Registers additional property scopes. The returned collection must contain valid scope names matching the pattern [A-Z][A-Z0-9_]*. Returns the four built-in scope names.- Specified by:
registerin interfacePropertyScopeRegistrar- Returns:
- a collection of additional scope names to register (may be empty, but not null)
-