@Target(value=TYPE) @Retention(value=CLASS) @Deprecated public @interface Component
Component
annotation is the only required annotation. If
this annotation is not declared in a Java class, the class is not declared as
a component.
This annotation is used to declare the <component> element of the
component declaration. See section 112.4.3, Component Element, in the OSGi
Service Platform Service Compendium Specification for more information. The
required <implementation> element is automatically generated with the
fully qualified name of the class containing the Component
annotation.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
componentAbstract
Deprecated.
This feature will not be supported in future versions.
|
boolean |
configurationFactory
Deprecated.
Set the metatype factory pid property (only for non factory components).
|
String |
configurationPid
Deprecated.
The configuration pid.
|
boolean |
createPid
Deprecated.
This property is handled by the Declarative Service Implementation
therefore it should never be created by hand.
|
String |
description
Deprecated.
This is generally used as a description for the object described by the
meta type.
|
boolean |
ds
Deprecated.
Whether Declarative Services descriptor is generated or not.
|
boolean |
enabled
Deprecated.
Whether the component is enabled when the bundle starts.
|
String |
factory
Deprecated.
Whether the component is a factory component.
|
boolean |
immediate
Deprecated.
Whether the component is immediately activated.
|
boolean |
inherit
Deprecated.
This feature will not be supported in future versions.
|
String |
label
Deprecated.
This is generally used as a title for the object described by the meta
type.
|
boolean |
metatype
Deprecated.
Whether Metatype Service data is generated or not.
|
String |
name
Deprecated.
Defines the Component name also used as the PID for the Configuration
Admin Service.
|
ConfigurationPolicy |
policy
Deprecated.
The configuration policy
|
String |
specVersion
Deprecated.
The version of the Declarative Services specification against which the
component is written.
|
public abstract String name
public abstract String label
public abstract String description
public abstract boolean enabled
public abstract String factory
public abstract boolean immediate
public abstract boolean inherit
public abstract boolean metatype
metatype.xml
file for this component. Otherwise no Metatype
Service data is generated for this component.public abstract boolean componentAbstract
public abstract boolean ds
public abstract String specVersion
Valid values currently are 1.0
and 1.1
. If
an unsupported value is declared, a descriptor failure results.
public abstract boolean createPid
service.pid
property by default, if none declared
explicitly.public abstract boolean configurationFactory
public abstract ConfigurationPolicy policy
public abstract String configurationPid
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.