Annotation Interface RegistrationScope
Marker to specify the registration scope for objects that are registered in the registry.
Whenever the scope is set to RegistrationScope.Scope.CURRENT, the annotated component will never be copied to a child registry
once it's created. Using the scope RegistrationScope.Scope.CHILDREN will ensure the annotated component is copied to a child
registry (and later to its children), once it's created.
This annotation is intended to be put on ConfigurationEnhancer and
DecoratorDefinition classes to control their registration scopes.
- Since:
- 5.1.0
- Author:
- Simon Zambrovski
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSets the registration scope for the instance.Optional description of the reason.
-
Element Details
-
value
String valueOptional description of the reason.- Returns:
- A description of the reason.
- Default:
""
-
scope
RegistrationScope.Scope scopeSets the registration scope for the instance.- Returns:
- The registration scope.
- Default:
CURRENT
-