Annotation Type ConfiguredBy
This annotation is put onto classes to indicate that
they should be created based on the availability of
instances of a specify type of configuration in the
Hub
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecifies the creation policy for configured services based on type instances.
-
Element Details
-
value
String valueA service is created for each instance of this type, with a name taken from the key of the instance- Returns:
- the name of the type to base instances of this service on
-
creationPolicy
ConfiguredBy.CreationPolicy creationPolicySpecifies the creation policy for configured services based on type instances. The values it can take are:- ON_DEMAND - Services are created when user code creates demand (via lookup or injection)
- EAGER - Services are created as soon as configured instances become available
- Returns:
- The creation policy for services configured by this type
- Default:
ON_DEMAND
-