Annotation Type CollectConfigTypes
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface CollectConfigTypes
Annotate aConfigCollectiontest parameter to only includeConfigType-constructed configs and optionally override the configuration pid applied to them.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<?>componentWhenpid()is set toComponent.NAME, set this attribute to a class whose name should be used instead.StringpidOptionally specify a configuration pid to apply to any collectedConfigTypeannotations.
-
-
-
Element Detail
-
pid
String pid
Optionally specify a configuration pid to apply to any collectedConfigTypeannotations. A non-empty value will override any non-emptyConfigType.pid()attributes specified by those collected annotations. In order to specify the name of thecomponent()class as a configuration PID, set this value toComponent.NAME. The default value is the empty string, which skips loading any configuration from ConfigurationAdmin.- Returns:
- a configuration pid, or an empty string
- Default:
- "$"
-
-