public class ComponentTypeDescription
extends java.lang.Object
| Constructor and Description |
|---|
ComponentTypeDescription(IPojoFactory factory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(PropertyDescription pd)
Adds a configuration properties to the component type.
|
void |
addProperty(java.lang.String name,
java.lang.String value)
Adds a String property in the component type.
|
void |
addProperty(java.lang.String name,
java.lang.String value,
boolean immutable)
Adds a String property in the component type.
|
void |
addProvidedServiceSpecification(java.lang.String serviceSpecification)
Adds a provided service to the component type.
|
org.osgi.framework.BundleContext |
getBundleContext() |
java.lang.String |
getClassName()
Deprecated.
|
org.apache.felix.ipojo.metadata.Element |
getDescription()
Gets the component type description.
|
IPojoFactory |
getFactory()
Gets the attached factory.
|
java.lang.String[] |
getFactoryInterfacesToPublish()
Gets the interfaces published by the factory.
|
CustomHandlerInfo |
getHandlerInfo(java.lang.String handlerNs,
java.lang.String handlerName) |
java.lang.String |
getName()
Returns the component-type name.
|
PropertyDescription[] |
getProperties()
Gets component-type properties.
|
java.util.Dictionary<java.lang.String,java.lang.Object> |
getPropertiesToPublish()
Computes the default service properties to publish :
factory.name, service.pid, component.providedServiceSpecification, component.properties, component.description, factory.State.
|
java.lang.String[] |
getprovidedServiceSpecification()
Gets the list of provided service offered by instances of this type.
|
java.lang.String |
getVersion()
Gets the component type version.
|
void |
setHandlerInfo(java.lang.String handlerNs,
java.lang.String handlerName,
CustomHandlerInfo info)
Adds the HandlerInfo for specified handler.
|
java.lang.String |
toString()
Gets a printable form of the current component type description.
|
public ComponentTypeDescription(IPojoFactory factory)
factory - : represented factory.public IPojoFactory getFactory()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getClassName()
public java.lang.String getVersion()
null if not set.public PropertyDescription[] getProperties()
public void addProperty(java.lang.String name,
java.lang.String value)
name - : property name.value - : property value.public void addProperty(java.lang.String name,
java.lang.String value,
boolean immutable)
name - : property name.value - : property value.immutable - : the property is immutable.public void addProperty(PropertyDescription pd)
pd - : the property to addpublic void setHandlerInfo(java.lang.String handlerNs,
java.lang.String handlerName,
CustomHandlerInfo info)
handlerNs - Handler's namespacehandlerName - Handler's nameinfo - HandlerInfo associated with the given custom handler.public CustomHandlerInfo getHandlerInfo(java.lang.String handlerNs, java.lang.String handlerName)
public java.lang.String[] getprovidedServiceSpecification()
public void addProvidedServiceSpecification(java.lang.String serviceSpecification)
serviceSpecification - : the provided service to add (interface name)public java.lang.String getName()
public java.util.Dictionary<java.lang.String,java.lang.Object> getPropertiesToPublish()
public java.lang.String[] getFactoryInterfacesToPublish()
Factory and ManagedServiceFactory.public org.apache.felix.ipojo.metadata.Element getDescription()
public org.osgi.framework.BundleContext getBundleContext()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.