Class InjectedServiceFactory<T>

java.lang.Object
org.iworkz.genesis.impl.InjectedServiceFactory<T>
All Implemented Interfaces:
org.osgi.framework.ServiceFactory<T>

public class InjectedServiceFactory<T> extends Object implements org.osgi.framework.ServiceFactory<T>
  • Field Details

    • injector

      protected final Injector injector
    • serviceClass

      protected final Class<T> serviceClass
  • Constructor Details

    • InjectedServiceFactory

      public InjectedServiceFactory(Injector injector, Class<T> serviceClass)
  • Method Details

    • getService

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

      public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<T> registration, T service)
      Specified by:
      ungetService in interface org.osgi.framework.ServiceFactory<T>