Interface PropertyScopeRegistrar

All Known Implementing Classes:
DefaultPropertyScopeRegistrar
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PropertyScopeRegistrar
A PropertyScopeRegistrar is a functional interface for registering additional property scopes. Implementations are discovered via Spring's component scanning and automatically registered with the PropertyScopes bean during auto-configuration. This allows downstream consumers to extend the library with domain-specific scopes without modifying the library code.
Author:
Heiko Scherrer
  • Method Summary

    Modifier and Type
    Method
    Description
    Registers additional property scopes.
  • Method Details

    • register

      Collection<String> register()
      Registers additional property scopes. The returned collection must contain valid scope names matching the pattern [A-Z][A-Z0-9_]*.
      Returns:
      a collection of additional scope names to register (may be empty, but not null)