org.apache.felix.metatype
Class DefaultMetaTypeProvider

java.lang.Object
  extended by org.apache.felix.metatype.DefaultMetaTypeProvider
All Implemented Interfaces:
org.osgi.service.metatype.MetaTypeProvider

public class DefaultMetaTypeProvider
extends java.lang.Object
implements org.osgi.service.metatype.MetaTypeProvider

The DefaultMetaTypeProvider class is an implementation of the MetaTypeProvider interface whichis 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.

Author:
fmeschbe

Constructor Summary
DefaultMetaTypeProvider(org.osgi.framework.Bundle bundle, MetaData metadata)
           
 
Method Summary
 org.osgi.framework.Bundle getBundle()
          Returns the Bundle to which this instance belongs.
 Designate getDesignate(java.lang.String pid)
           
protected  java.util.Map getDesignates()
           
 java.lang.String[] getLocales()
           
 org.osgi.service.metatype.ObjectClassDefinition getObjectClassDefinition(java.lang.String id, java.lang.String locale)
           
protected  java.util.Map getObjectClassDefinitions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMetaTypeProvider

public DefaultMetaTypeProvider(org.osgi.framework.Bundle bundle,
                               MetaData metadata)
Method Detail

getBundle

public org.osgi.framework.Bundle getBundle()
Returns the Bundle to which this instance belongs.


getLocales

public java.lang.String[] getLocales()
Specified by:
getLocales in interface org.osgi.service.metatype.MetaTypeProvider

getObjectClassDefinition

public org.osgi.service.metatype.ObjectClassDefinition getObjectClassDefinition(java.lang.String id,
                                                                                java.lang.String locale)
Specified by:
getObjectClassDefinition in interface org.osgi.service.metatype.MetaTypeProvider

getDesignate

public Designate getDesignate(java.lang.String pid)

getObjectClassDefinitions

protected java.util.Map getObjectClassDefinitions()

getDesignates

protected java.util.Map getDesignates()