Class ComponentInstanceImpl.OSGiServiceFactory

  • All Implemented Interfaces:
    org.osgi.framework.ServiceFactory
    Enclosing class:
    ComponentInstanceImpl

    protected class ComponentInstanceImpl.OSGiServiceFactory
    extends Object
    implements org.osgi.framework.ServiceFactory
    • Field Detail

      • clazz

        protected Class<?> clazz
      • reg

        protected org.osgi.framework.ServiceRegistration reg
    • Constructor Detail

      • OSGiServiceFactory

        public OSGiServiceFactory​(String className)
      • OSGiServiceFactory

        public OSGiServiceFactory​(org.osgi.framework.Bundle bundle,
                                  String className)
    • Method Detail

      • getService

        public Object getService​(org.osgi.framework.Bundle bundle,
                                 org.osgi.framework.ServiceRegistration registration)
        Specified by:
        getService in interface org.osgi.framework.ServiceFactory
      • ungetService

        public void ungetService​(org.osgi.framework.Bundle bundle,
                                 org.osgi.framework.ServiceRegistration registration,
                                 Object service)
        Specified by:
        ungetService in interface org.osgi.framework.ServiceFactory
      • register

        public void register()
      • unregister

        public void unregister()