Excerpt | ||
---|---|---|
| ||
Using Java 5 Annotations to describe the component or service. |
The maven-scr-plugin
uses the SCR
annotations from the corresponding subproject at Apache Felix. All annotations are in the org.apache.felix.scr.annotations
package. If you want to use the annotations in your project, you have to use a maven-scr-plugin
version >= 1.2.0 and make sure that you add a dependency to the annotations to your POM
:
...
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="04ed79d5901f3135-93d81c19-464049fc-b801a9db-479001c52978a6c65408976a"><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 |
...