Class DefaultPropertyScopeRegistrar

java.lang.Object
org.openwms.core.preferences.impl.DefaultPropertyScopeRegistrar
All Implemented Interfaces:
PropertyScopeRegistrar

public class DefaultPropertyScopeRegistrar extends Object implements 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 Details

    • DefaultPropertyScopeRegistrar

      public DefaultPropertyScopeRegistrar()
  • Method Details

    • register

      public Collection<String> 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:
      register in interface PropertyScopeRegistrar
      Returns:
      a collection of additional scope names to register (may be empty, but not null)