Annotation Type CollectConfigTypes
Annotate a
ConfigCollection test parameter to only
include ConfigType-constructed configs and optionally
override the configuration pid applied to them.-
Optional Element Summary
Optional Elements
-
Element Details
-
pid
String pidOptionally 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:
- "$"
-
component
Class<?> componentWhenpid()is set toComponent.NAME, set this attribute to a class whose name should be used instead.- Returns:
- the configurable component class
- Default:
- java.lang.Void.class
-