Class ComponentDescriptionDTO
- java.lang.Object
-
- org.osgi.dto.DTO
-
- org.osgi.service.component.runtime.dto.ComponentDescriptionDTO
-
public class ComponentDescriptionDTO extends DTO
A representation of a declared component description.- Since:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description String
activate
The name of the activate method.String[]
activationFields
The activation fields.BundleDTO
bundle
The bundle declaring the component description.String[]
configurationPid
The configuration pids.String
configurationPolicy
The configuration policy.String
deactivate
The name of the deactivate method.boolean
defaultEnabled
The initial enabled state.String
factory
The component factory name.Map<String,Object>
factoryProperties
The factory properties.boolean
immediate
The immediate state.String
implementationClass
The fully qualified name of the implementation class.int
init
The constructor parameter count.String
modified
The name of the modified method.String
name
The name of the component.Map<String,Object>
properties
The component properties.ReferenceDTO[]
references
The referenced services.String
scope
The service scope.String[]
serviceInterfaces
The fully qualified names of the service interfaces.
-
Constructor Summary
Constructors Constructor Description ComponentDescriptionDTO()
-
-
-
Field Detail
-
name
public String name
The name of the component.This is declared in the
name
attribute of thecomponent
element. This must be the default name if the component description does not declare a name.
-
bundle
public BundleDTO bundle
The bundle declaring the component description.
-
factory
public String factory
The component factory name.This is declared in the
factory
attribute of thecomponent
element. This must benull
if the component description is not declared as a factory component.
-
scope
public String scope
The service scope.This is declared in the
scope
attribute of theservice
element. This must benull
if the component description does not declare any service interfaces.
-
implementationClass
public String implementationClass
The fully qualified name of the implementation class.This is declared in the
class
attribute of theimplementation
element.
-
defaultEnabled
public boolean defaultEnabled
The initial enabled state.This is declared in the
enabled
attribute of thecomponent
element.
-
immediate
public boolean immediate
The immediate state.This is declared in the
immediate
attribute of thecomponent
element.
-
serviceInterfaces
public String[] serviceInterfaces
The fully qualified names of the service interfaces.These are declared in the
interface
attribute of theprovide
elements. The array must be empty if the component description does not declare any service interfaces.
-
properties
public Map<String,Object> properties
The component properties.These are declared in the component description by the
property
andproperties
elements as well as thetarget
attribute of thereference
elements.
-
references
public ReferenceDTO[] references
The referenced services.These are declared in the
reference
elements. The array must be empty if the component description does not declare references to any services.
-
activate
public String activate
The name of the activate method.This is declared in the
activate
attribute of thecomponent
element. This must benull
if the component description does not declare an activate method name.
-
deactivate
public String deactivate
The name of the deactivate method.This is declared in the
deactivate
attribute of thecomponent
element. This must benull
if the component description does not declare a deactivate method name.
-
modified
public String modified
The name of the modified method.This is declared in the
modified
attribute of thecomponent
element. This must benull
if the component description does not declare a modified method name.
-
configurationPolicy
public String configurationPolicy
The configuration policy.This is declared in the
configuration-policy
attribute of thecomponent
element. This must be the default configuration policy if the component description does not declare a configuration policy.
-
configurationPid
public String[] configurationPid
The configuration pids.These are declared in the
configuration-pid
attribute of thecomponent
element. This must contain the default configuration pid if the component description does not declare a configuration pid.
-
factoryProperties
public Map<String,Object> factoryProperties
The factory properties.These are declared in the component description by the
factory-property
andfactory-properties
elements. This must benull
if the component description is not declared as afactory component
.- Since:
- 1.4
-
activationFields
public String[] activationFields
The activation fields.These are declared in the
activation-fields
attribute of thecomponent
element. The array must be empty if the component description does not declare any activation fields.- Since:
- 1.4
-
init
public int init
The constructor parameter count.This is declared in the
init
attribute of thecomponent
element. This must be0
if the component description does not declare aninit
attribute.- Since:
- 1.4
-
-