Class 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 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.

    • Field Summary

      • Fields inherited from interface org.osgi.service.metatype.MetaTypeProvider

        METATYPE_FACTORY_PID, METATYPE_PID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.osgi.framework.Bundle getBundle()
      Returns the Bundle to which this instance belongs.
      Designate getDesignate​(java.lang.String pid)  
      java.lang.String[] getLocales()  
      org.osgi.service.metatype.ObjectClassDefinition getObjectClassDefinition​(java.lang.String id, java.lang.String locale)  
      • Methods inherited from class java.lang.Object

        equals, 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)