Class PropertyScopesImpl

java.lang.Object
org.openwms.core.preferences.impl.PropertyScopesImpl
All Implemented Interfaces:
PropertyScopes

@Component class PropertyScopesImpl extends Object implements 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 Details

  • Constructor Details

  • Method Details

    • isRegistered

      public boolean isRegistered(String name)
      Description copied from interface: PropertyScopes
      Checks whether a scope with the given name is registered.
      Specified by:
      isRegistered in interface PropertyScopes
      Parameters:
      name - the scope name to check
      Returns:
      true if the scope is registered, false otherwise
    • resolve

      public PropertyScope resolve(String name)
      Description copied from interface: PropertyScopes
      Resolves a scope by name. Only registered scopes are resolved successfully.
      Specified by:
      resolve in interface PropertyScopes
      Parameters:
      name - the scope name
      Returns:
      the PropertyScope instance
    • all

      public Collection<PropertyScope> all()
      Description copied from interface: PropertyScopes
      Returns a collection of all registered scopes.
      Specified by:
      all in interface PropertyScopes
      Returns:
      all registered scopes