|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eurotech.framework.core.util.ComponentUtil
public class ComponentUtil
Utility class to handle the loading of the meta-information of a bundle or one of its Services/Components.
| Constructor Summary | |
|---|---|
ComponentUtil()
|
|
| Method Summary | |
|---|---|
static Map<String,Object> |
getDefaultProperties(OCD ocd)
|
static Map<String,OCD> |
getObjectClassDefinition(org.osgi.framework.BundleContext ctx,
org.osgi.framework.Bundle bnd)
Returns a Map with all the MetaType Object Class Definitions contained in the bundle. |
static org.osgi.service.metatype.ObjectClassDefinition |
getObjectClassDefinition(org.osgi.framework.BundleContext ctx,
String pid)
Returns the ObjectClassDefinition for the provided Service pid as returned by the native OSGi MetaTypeService. |
static Tocd |
readObjectClassDefinition(org.osgi.framework.Bundle bundle,
String pid)
Returned the ObjectClassDefinition as parsed from the XML file. |
static Tocd |
readObjectClassDefinition(String pid)
Returned the ObjectClassDefinition as parsed from the XML file. |
static OCD |
readObjectClassDefinition(URL resourceUrl)
Returned the ObjectClassDefinition as parsed from the XML file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentUtil()
| Method Detail |
|---|
public static Map<String,OCD> getObjectClassDefinition(org.osgi.framework.BundleContext ctx,
org.osgi.framework.Bundle bnd)
ctx - bnd -
public static org.osgi.service.metatype.ObjectClassDefinition getObjectClassDefinition(org.osgi.framework.BundleContext ctx,
String pid)
ctx - pid -
public static OCD readObjectClassDefinition(URL resourceUrl)
throws IOException,
JAXBException,
XMLStreamException,
FactoryConfigurationError
resourceUrl - Url of the MetaData XML file which needs to be loaded
IOException
JAXBException
XMLStreamException
FactoryConfigurationError
public static Tocd readObjectClassDefinition(String pid)
throws IOException,
JAXBException,
XMLStreamException,
FactoryConfigurationError
pid - ID of the service whose OCD should be loaded
IOException
JAXBException
XMLStreamException
FactoryConfigurationError
public static Tocd readObjectClassDefinition(org.osgi.framework.Bundle bundle,
String pid)
throws IOException,
JAXBException,
XMLStreamException,
FactoryConfigurationError
ctx - pid - ID of the service whose OCD should be loaded
IOException
JAXBException
XMLStreamException
FactoryConfigurationError
public static Map<String,Object> getDefaultProperties(OCD ocd)
throws EsfException
EsfException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||