public class DefaultMetaTypeProvider extends Object implements org.osgi.service.metatype.MetaTypeProvider
DefaultMetaTypeProvider
class is an implementation of the
MetaTypeProvider
interface which is configured for a given
bundle using a MetaData
object.
This class may be used by clients, e.g. ManagedService
or
ManagedServiceFactory
implementations to easily also implement
the MetaTypeProvider
interface.
Constructor and Description |
---|
DefaultMetaTypeProvider(org.osgi.framework.Bundle bundle,
MetaData metadata) |
Modifier and Type | Method and Description |
---|---|
org.osgi.framework.Bundle |
getBundle()
Returns the
Bundle to which this instance belongs. |
Designate |
getDesignate(String pid) |
protected List |
getDesignates() |
String[] |
getLocales() |
org.osgi.service.metatype.ObjectClassDefinition |
getObjectClassDefinition(String id,
String locale) |
protected Map |
getObjectClassDefinitions() |
public DefaultMetaTypeProvider(org.osgi.framework.Bundle bundle, MetaData metadata)
public org.osgi.framework.Bundle getBundle()
Bundle
to which this instance belongs.public String[] getLocales()
getLocales
in interface org.osgi.service.metatype.MetaTypeProvider
public org.osgi.service.metatype.ObjectClassDefinition getObjectClassDefinition(String id, String locale)
getObjectClassDefinition
in interface org.osgi.service.metatype.MetaTypeProvider
protected Map getObjectClassDefinitions()
protected List getDesignates()
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.