...
Property | Description | Version | |||||||||
| The plugin will generate a descriptor for the Declarative Service version (either 1.0 or 1.1). If no value is specified, the plugin will detect the version and only use 1.1 if features from this version are used. | >= 1.4.0 | |||||||||
| If this switch is turned on, the bind and unbind methods for unary references are automatically generated by the plugin. By default this is set to |
| |||||||||
| If this switch is turned on, the java source code and its javadoc tags are scanned for the scr tags (see below). The default value is |
| |||||||||
| If this switch is turned on, the java code is scanned for the scr annotations (see below). The default value is | >= 1.2.0 | |||||||||
| Comma separated list of classes to exclude when processing the source. |
| |||||||||
| The plugin distinguishes between errors and warnings. In strict mode warnings are treated as errors and cause the plugin to fail. The default value is |
| |||||||||
| A map of predefined properties. These properties are set to each component (if the component does not define the property already). |
| | The name of the descriptor file to create. This property defaults to the value of the |
| | The name of the descriptor file to create. This property defauls to |
| | Default properties for all components. This is a map where the property name is made up by the included element name and the value is the value of the element. | >= 1.2.0 |
| The plugin will generate a descriptor for the Declarative Service version (either 1.0 or 1.1). If no value is specified, the plugin will detect the version and only use 1.1 if features from this version are used. name of the descriptor file to create. This property defaults to the value of the |
| |||||||||
| The name of the descriptor file to create. This property defauls to | >= 1.4.0 |
The meta type file is generated in the OSGI-INF/metatype/
directory and the scr descriptor file in the OSGI-INF
directory.
Note: The location of the meta type descriptor may not be changed as the OSGi Metatype Service Specification prescribes the location of the descriptors.
...
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="a9f4ebf9815de7c2-e9153bda-4e91462b-89a1a655-357dc5365409ce681c5584fc"><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 | 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="11ef49fffba3f368-a59817f3-40dd41eb-8e839d45-c140d599fe3c4e025e444b9e"><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 |
...