Package io.helidon.pico.configdriven.api
Annotation Interface ConfiguredBy
In support of config-driven services. Place this on a service type interface where
Singleton would
typically go, for example as follows:
@ConfiguredBy(MyConfigBean.class)
public class MyConfiguredService {
@Inject
public MyConfiguredService(MyConfigBean cfg) {
...
}
...
}
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanDetermines whether an instance of this config bean in the registry will cause the backing service to be activated.booleanRequired to be set to true ifdrivesActivation()is applied, thereby overriding the defaults inConfigBeanannotation.
-
Element Details
-
value
Class<?> valueTheConfigBean-annotated type.- Returns:
- the
ConfigBean-annotated type
-
overrideBean
boolean overrideBeanRequired to be set to true ifdrivesActivation()is applied, thereby overriding the defaults inConfigBeanannotation. The default value isfalse.- Returns:
- true to override the config bean attributes, false to defer to the bean
- Default:
false
-
drivesActivation
boolean drivesActivationDetermines whether an instance of this config bean in the registry will cause the backing service to be activated. The default value istrue. Note, however, thatoverrideBean()must be set to true for this to be applied.- Returns:
- true if the presence of the config bean has an activation affect (aka, "config-driven services")
- Default:
true
-