Package jenkins

Class ProxyInjector

java.lang.Object
jenkins.ProxyInjector
All Implemented Interfaces:
com.google.inject.Injector

public abstract class ProxyInjector extends Object implements com.google.inject.Injector
Injector that delegates to another one.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • ProxyInjector

      public ProxyInjector()
  • Method Details

    • resolve

      protected abstract com.google.inject.Injector resolve()
    • injectMembers

      public void injectMembers(Object instance)
      Specified by:
      injectMembers in interface com.google.inject.Injector
    • getMembersInjector

      public <T> com.google.inject.MembersInjector<T> getMembersInjector(com.google.inject.TypeLiteral<T> typeLiteral)
      Specified by:
      getMembersInjector in interface com.google.inject.Injector
    • getMembersInjector

      public <T> com.google.inject.MembersInjector<T> getMembersInjector(Class<T> type)
      Specified by:
      getMembersInjector in interface com.google.inject.Injector
    • getBindings

      public Map<com.google.inject.Key<?>,com.google.inject.Binding<?>> getBindings()
      Specified by:
      getBindings in interface com.google.inject.Injector
    • getAllBindings

      public Map<com.google.inject.Key<?>,com.google.inject.Binding<?>> getAllBindings()
      Specified by:
      getAllBindings in interface com.google.inject.Injector
    • getBinding

      public <T> com.google.inject.Binding<T> getBinding(com.google.inject.Key<T> key)
      Specified by:
      getBinding in interface com.google.inject.Injector
    • getBinding

      public <T> com.google.inject.Binding<T> getBinding(Class<T> type)
      Specified by:
      getBinding in interface com.google.inject.Injector
    • getExistingBinding

      public <T> com.google.inject.Binding<T> getExistingBinding(com.google.inject.Key<T> key)
      Specified by:
      getExistingBinding in interface com.google.inject.Injector
    • findBindingsByType

      public <T> List<com.google.inject.Binding<T>> findBindingsByType(com.google.inject.TypeLiteral<T> type)
      Specified by:
      findBindingsByType in interface com.google.inject.Injector
    • getProvider

      public <T> com.google.inject.Provider<T> getProvider(com.google.inject.Key<T> key)
      Specified by:
      getProvider in interface com.google.inject.Injector
    • getProvider

      public <T> com.google.inject.Provider<T> getProvider(Class<T> type)
      Specified by:
      getProvider in interface com.google.inject.Injector
    • getInstance

      public <T> T getInstance(com.google.inject.Key<T> key)
      Specified by:
      getInstance in interface com.google.inject.Injector
    • getInstance

      public <T> T getInstance(Class<T> type)
      Specified by:
      getInstance in interface com.google.inject.Injector
    • getParent

      public com.google.inject.Injector getParent()
      Specified by:
      getParent in interface com.google.inject.Injector
    • createChildInjector

      public com.google.inject.Injector createChildInjector(Iterable<? extends com.google.inject.Module> modules)
      Specified by:
      createChildInjector in interface com.google.inject.Injector
    • createChildInjector

      public com.google.inject.Injector createChildInjector(com.google.inject.Module... modules)
      Specified by:
      createChildInjector in interface com.google.inject.Injector
    • getScopeBindings

      public Map<Class<? extends Annotation>,com.google.inject.Scope> getScopeBindings()
      Specified by:
      getScopeBindings in interface com.google.inject.Injector
    • getTypeConverterBindings

      public Set<com.google.inject.spi.TypeConverterBinding> getTypeConverterBindings()
      Specified by:
      getTypeConverterBindings in interface com.google.inject.Injector
    • getElements

      public List<com.google.inject.spi.Element> getElements()
      Specified by:
      getElements in interface com.google.inject.Injector
    • getAllMembersInjectorInjectionPoints

      public Map<com.google.inject.TypeLiteral<?>,List<com.google.inject.spi.InjectionPoint>> getAllMembersInjectorInjectionPoints()
      Specified by:
      getAllMembersInjectorInjectionPoints in interface com.google.inject.Injector