Package 

Class ServiceRegistrationReflection


  • 
    public final class ServiceRegistrationReflection<T extends Object>
    extends ServiceRegistration<T>
                        

    A registration of a service that should use reflection to instantiate the service. This implementation takes as input clazz and using reflection will determine the best constructor to use for creating a new instance of that clazz.

    The constructor can have parameters, as long as the parameter types are:

    The instantiated service is treated as a singleton, instantiation will only happen once.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Set<Class<?>> services
    • Method Summary

      Modifier and Type Method Description
      final Set<Class<?>> getServices()
      Object resolve(IServiceProvider provider)
      • Methods inherited from class com.onesignal.common.services.ServiceRegistrationReflection

        provides, provides
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait