Class ServiceProvider<T>

  • All Implemented Interfaces:
    com.google.inject.Provider<T>, javax.inject.Provider<T>

    public class ServiceProvider<T>
    extends Object
    implements com.google.inject.Provider<T>
    Author:
    Bogdan Stefanescu
    • Field Detail

      • clazz

        protected final Class<T> clazz
    • Constructor Detail

      • ServiceProvider

        public ServiceProvider​(Class<T> clazz)
    • Method Detail

      • getServiceClass

        public Class<T> getServiceClass()
      • get

        public T get()
        Specified by:
        get in interface com.google.inject.Provider<T>
        Specified by:
        get in interface javax.inject.Provider<T>
      • getScope

        public com.google.inject.Scope getScope()