Annotation Type CollectConfigTypes
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface CollectConfigTypes
Annotate aConfigCollection
test 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<?>
component
Whenpid()
is set toComponent.NAME
, set this attribute to a class whose name should be used instead.String
pid
Optionally specify a configuration pid to apply to any collectedConfigType
annotations.
-
-
-
Element Detail
-
pid
String pid
Optionally specify a configuration pid to apply to any collectedConfigType
annotations. 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:
- "$"
-
-