@Retention(value=CLASS)
@Target(value=ANNOTATION_TYPE)
public @interface PropertyMetaData
PropertyMetaData
ConfigurationDependency
: This dependency allows to define a
dependency over a Configuration Admin
configuration dictionaries, whose
metadata can be described using PropertyMetaData
annotation.
FactoryConfigurationAdapterService
: This service adapter allows
to dynamically create Services on behalf of Factory Configuration Admin
configuration dictionaries, whose metadata can be described using this PropertyMetaData
annotation.
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
description
Returns the property description.
|
java.lang.String |
heading
The label used to display the property.
|
java.lang.String |
id
The key of a ConfigurationAdmin property.
|
Modifier and Type | Optional Element and Description |
---|---|
int |
cardinality
Return the cardinality of this property.
|
java.lang.String[] |
defaults
Return a default for this property.
|
java.lang.String[] |
optionLabels
Return a list of valid option labels for this property.
|
java.lang.String[] |
optionValues
Return a list of option values that this property can take.
|
boolean |
required
Tells if this property is required or not.
|
java.lang.Class<?> |
type
Return the property primitive type.
|
public abstract java.lang.String heading
public abstract java.lang.String id
public abstract java.lang.String description
public abstract java.lang.Class<?> type
public abstract java.lang.String[] defaults
public abstract int cardinality
public abstract boolean required
public abstract java.lang.String[] optionLabels
optionValues()
attribute. The labels returned here are ordered in the same way as the
optionValues()
attribute values.public abstract java.lang.String[] optionValues
optionLabels()
attribute.