Interface PropertyScopes

All Known Implementing Classes:
PropertyScopesImpl

public interface PropertyScopes
A PropertyScopes registry manages all available property scopes. The built-in scopes APPLICATION, MODULE, ROLE, and USER are always registered. Downstream consumers can register additional domain-specific scopes via PropertyScopeRegistrar beans.
Author:
Heiko Scherrer
  • Method Details

    • isRegistered

      boolean isRegistered(String name)
      Checks whether a scope with the given name is registered.
      Parameters:
      name - the scope name to check
      Returns:
      true if the scope is registered, false otherwise
    • resolve

      PropertyScope resolve(String name)
      Resolves a scope by name. Only registered scopes are resolved successfully.
      Parameters:
      name - the scope name
      Returns:
      the PropertyScope instance
      Throws:
      IllegalArgumentException - if the scope name is not registered or invalid
    • all

      Returns a collection of all registered scopes.
      Returns:
      all registered scopes