...
Name | Default Value | Required | SCR | Metatype | Description |
name | Fully qualified name of the Java class | no | | | Defines the Component name also used as the PID for the Configuration Admin Service |
ds | | no | – | – | Whether Declarative Services descriptor is generated or not. If this parameter is not set or set to |
specVersion | | no | – | – | Defines what Declarative Services specification the component is written against. Though the Maven SCR Plugin is very good at detecting whether components are written against the original or a newer specification, there are some cases, where the plugin may fail. For these cases, the |
componentAbstract | see description | no | – | – | This marks an abstract service description which is not added to the descriptor but intended for reuse through inheritance. This attribute defaults to |
enabled | | no | | – | Whether the component is enabled when the bundle starts |
factory | – | no | | – | Whether the component is a factory component |
immediate | – | no | | – | Whether the component is immediately activated |
inherit | | no | – | – | Whether any service, property and reference declarations from base classes should be inherited by this class. |
metatype | | no | – | – | Whether Metatype Service data is generated or not. If this parameter is set to |
label | | no | – | | This is generally used as a title for the object described by the meta type. This name may be localized by prepending a |
description | | no | – | | This is generally used as a description for the object described by the meta type. This name may be localized by prepending a |
createPid | | no | | – | Generate the |
configurationFactory | | no | – | | Is this a configuration factory? (since 1.4.0) |
...
policy | | no | component.policy | – | The configuration policy for this component: |
...
Name | Default Value | Required | SCR | Metatype | Description | ||
name | The name of constant | yes | | | The name of the property. If this tag is defined on a field with an initialization expression, the value of that expression is used as the name if the field is of type | ||
value | – | no | | | The string value of the property. This can either be a single value or an array. | ||
longValue | – | no | | | The long value of the property. This can either be a single value or an array. | ||
doubleValue | – | no | | | The double value of the property. This can either be a single value or an array. | ||
floatValue | – | no | | | The float value of the property. This can either be a single value or an array. | ||
intValue | – | no | | | The int value of the property. This can either be a single value or an array. | ||
byteValue | – | no | | | The byte value of the property. This can either be a single value or an array. | ||
charValue | – | no | | | The char value of the property. This can either be a single value or an array. | ||
boolValue | – | no | | | The boolean value of the property. This can either be a single value or an array. | ||
shortValue | – | no | | | The short value of the property. This can either be a single value or an array. | ||
label | | no | – | | The label to display in a form to configure this property. This name may be localized by prepending a | ||
description | | no | – | | A descriptive text to provide the client in a form to configure this property. This name may be localized by prepending a | ||
propertyPrivate | Depending on the name | no | – | See description | Boolean flag defining whether a metatype descriptor entry should be generated for this property or not. By default a metatype descriptor entry, i.e. an | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ab75d2a6f9b22c36-5dae0d46-44eb4436-aa17ada5-a283ee070152caa31a622080"><ac:plain-text-body><![CDATA[ | cardinality | Depends on property value(s) | no | – | | Defines the cardinality of the property and its collection type. If the cardinality is negative, the property is expected to be stored in a | ]]></ac:plain-text-body></ac:structured-macro> |
options | – | no | – | See below | See below for a description of the |
...
Name | Default Value | Required | Descriptor | Description |
name | Name of the field | yes | | The local name of the reference. If the |
interface | Type of the field | yes | | The name of the service interface. This name is used by the Service Component Runtime to access the service on behalf of the component. If the |
cardinality | | no | | The cardinality of the service reference. This must be one of value from the enumeration |
policy | | no | | The dynamicity policy of the reference. If |
target | – | no | | A service target filter to select specific services to be made available. In order to be able to overwrite the value of this value by a configuration property, this parameter must be declared. If the parameter is not declared, the respective declaration attribute will not be generated |
bind | See description | no | | The name of the method to be called when the service is to be bound to the component. The default value is the name created by appending the reference |
unbind | See description | no | | The name of the method to be called when the service is to be unbound from the component. The default value is the name created by appending the reference |
strategy | | no | | The strategy used for this reference, one of |
---|
...
Name | Default Value | Required | SCR | Metatype | Description |
name | Fully qualified name of the Java class | no | | | Defines the Component name also used as the PID for the Configuration Admin Service |
ds | | no | – | – | Whether Declarative Services descriptor is generated or not. If this parameter is not set or set to |
abstract | see description | no | – | – | This marks an abstract service description which is not added to the descriptor but intended for reuse through inheritance. This attribute defaults to |
enabled | | no | | – | Whether the component is enabled when the bundle starts |
factory | – | no | | – | Whether the component is a factory component |
immediate | – | no | | – | Whether the component is immediately activated |
inherit | | no | – | – | Whether any service, property and reference declarations from base classes should be inherited by this class. |
metatype | | no | – | – | Whether Metatype Service data is generated or not. If this parameter is not set or set to |
label | | no | – | | This is generally used as a title for the object described by the meta type. This name may be localized by prepending a |
description | | no | – | | This is generally used as a description for the object described by the meta type. This name may be localized by prepending a |
create-pid | | no | | – | Generate the |
configurationFactory | | no | – | | Is this a configuration factory? (since 1.4.0) |
...
policy | | no | component.policy | – | The configuration policy for this component: |
activate | | no | component.activate | – | The name of the component activation method. |
deactivate | | no | component.deactivate | – | The name of the component deactivation method. |
modified | – | no | component.modified | – | The name of the component modified method. |
...
Name | Default Value | Required | SCR | Metatype | Description | ||
name | The name of constant | yes | | | The name of the property. If this tag is defined on a field with an initialization expression, the value of that expression is used as the name if the field is of type | ||
value | – | no | | | The value of the property. If the property type is not | ||
type | | no | | | The type of the property value. This must be one of | ||
label | | no | – | | The label to display in a form to configure this property. This name may be localized by prepending a | ||
description | | no | – | | A descriptive text to provide the client in a form to configure this property. This name may be localized by prepending a | ||
private | Depending on the name | no | – | See description | Boolean flag defining whether a metatype descriptor entry should be generated for this property or not. By default a metatype descriptor entry, i.e. an | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="42378f4d7dc549ba-71db0518-48b44774-86f29345-e1c0baea93f5b7b1a9bc3afd"><ac:plain-text-body><![CDATA[ | cardinality | Depends on property value(s) | no | – | | Defines the cardinality of the property and its collection type. If the cardinality is negative, the property is expected to be stored in a | ]]></ac:plain-text-body></ac:structured-macro> |
options | – | no | – | See below | See below for a description of the | ||
values* | – | no | – | See below | See below for a description of parameters starting with | ||
valueRef | – | no | – | | A constant containing the value for this property. The constant can either be declared in the same class as this property or in any class that is imported. The type of the property is derived from the constant. | ||
valueRefs | – | no | – | See below | Same as the |
...
Name | Default Value | Required | Descriptor | Description |
name | Name of the field | yes | | The local name of the reference. If the |
interface | Type of the field | yes | | The name of the service interface. This name is used by the Service Component Runtime to access the service on behalf of the component. If the |
cardinality | | no | | The cardinality of the service reference. This must be one of |
policy | | no | | The dynamicity policy of the reference. If |
target | – | no | | A service target filter to select specific services to be made available. In order to be able to overwrite the value of this value by a configuration property, this parameter must be declared. If the parameter is not declared, the respective declaration attribute will not be generated |
bind | See description | no | | The name of the method to be called when the service is to be bound to the component. The default value is the name created by appending the reference |
unbind | See description | no | | The name of the method to be called when the service is to be unbound from the component. The default value is the name created by appending the reference |
strategy | | no | | The strategy used for this reference, one of |
---|
...