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 Summary
Constructors Constructor Description ProxyInjector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.google.inject.Injector
createChildInjector(com.google.inject.Module... modules)
com.google.inject.Injector
createChildInjector(Iterable<? extends com.google.inject.Module> modules)
<T> List<com.google.inject.Binding<T>>
findBindingsByType(com.google.inject.TypeLiteral<T> type)
Map<com.google.inject.Key<?>,com.google.inject.Binding<?>>
getAllBindings()
Map<com.google.inject.TypeLiteral<?>,List<com.google.inject.spi.InjectionPoint>>
getAllMembersInjectorInjectionPoints()
<T> com.google.inject.Binding<T>
getBinding(com.google.inject.Key<T> key)
<T> com.google.inject.Binding<T>
getBinding(Class<T> type)
Map<com.google.inject.Key<?>,com.google.inject.Binding<?>>
getBindings()
List<com.google.inject.spi.Element>
getElements()
<T> com.google.inject.Binding<T>
getExistingBinding(com.google.inject.Key<T> key)
<T> T
getInstance(com.google.inject.Key<T> key)
<T> T
getInstance(Class<T> type)
<T> com.google.inject.MembersInjector<T>
getMembersInjector(com.google.inject.TypeLiteral<T> typeLiteral)
<T> com.google.inject.MembersInjector<T>
getMembersInjector(Class<T> type)
com.google.inject.Injector
getParent()
<T> com.google.inject.Provider<T>
getProvider(com.google.inject.Key<T> key)
<T> com.google.inject.Provider<T>
getProvider(Class<T> type)
Map<Class<? extends Annotation>,com.google.inject.Scope>
getScopeBindings()
Set<com.google.inject.spi.TypeConverterBinding>
getTypeConverterBindings()
void
injectMembers(Object instance)
protected abstract com.google.inject.Injector
resolve()
-
-
-
Method Detail
-
resolve
protected abstract com.google.inject.Injector resolve()
-
injectMembers
public void injectMembers(Object instance)
- Specified by:
injectMembers
in interfacecom.google.inject.Injector
-
getMembersInjector
public <T> com.google.inject.MembersInjector<T> getMembersInjector(com.google.inject.TypeLiteral<T> typeLiteral)
- Specified by:
getMembersInjector
in interfacecom.google.inject.Injector
-
getMembersInjector
public <T> com.google.inject.MembersInjector<T> getMembersInjector(Class<T> type)
- Specified by:
getMembersInjector
in interfacecom.google.inject.Injector
-
getBindings
public Map<com.google.inject.Key<?>,com.google.inject.Binding<?>> getBindings()
- Specified by:
getBindings
in interfacecom.google.inject.Injector
-
getAllBindings
public Map<com.google.inject.Key<?>,com.google.inject.Binding<?>> getAllBindings()
- Specified by:
getAllBindings
in interfacecom.google.inject.Injector
-
getBinding
public <T> com.google.inject.Binding<T> getBinding(com.google.inject.Key<T> key)
- Specified by:
getBinding
in interfacecom.google.inject.Injector
-
getBinding
public <T> com.google.inject.Binding<T> getBinding(Class<T> type)
- Specified by:
getBinding
in interfacecom.google.inject.Injector
-
getExistingBinding
public <T> com.google.inject.Binding<T> getExistingBinding(com.google.inject.Key<T> key)
- Specified by:
getExistingBinding
in interfacecom.google.inject.Injector
-
findBindingsByType
public <T> List<com.google.inject.Binding<T>> findBindingsByType(com.google.inject.TypeLiteral<T> type)
- Specified by:
findBindingsByType
in interfacecom.google.inject.Injector
-
getProvider
public <T> com.google.inject.Provider<T> getProvider(com.google.inject.Key<T> key)
- Specified by:
getProvider
in interfacecom.google.inject.Injector
-
getProvider
public <T> com.google.inject.Provider<T> getProvider(Class<T> type)
- Specified by:
getProvider
in interfacecom.google.inject.Injector
-
getInstance
public <T> T getInstance(com.google.inject.Key<T> key)
- Specified by:
getInstance
in interfacecom.google.inject.Injector
-
getInstance
public <T> T getInstance(Class<T> type)
- Specified by:
getInstance
in interfacecom.google.inject.Injector
-
getParent
public com.google.inject.Injector getParent()
- Specified by:
getParent
in interfacecom.google.inject.Injector
-
createChildInjector
public com.google.inject.Injector createChildInjector(Iterable<? extends com.google.inject.Module> modules)
- Specified by:
createChildInjector
in interfacecom.google.inject.Injector
-
createChildInjector
public com.google.inject.Injector createChildInjector(com.google.inject.Module... modules)
- Specified by:
createChildInjector
in interfacecom.google.inject.Injector
-
getScopeBindings
public Map<Class<? extends Annotation>,com.google.inject.Scope> getScopeBindings()
- Specified by:
getScopeBindings
in interfacecom.google.inject.Injector
-
getTypeConverterBindings
public Set<com.google.inject.spi.TypeConverterBinding> getTypeConverterBindings()
- Specified by:
getTypeConverterBindings
in interfacecom.google.inject.Injector
-
getElements
public List<com.google.inject.spi.Element> getElements()
- Specified by:
getElements
in interfacecom.google.inject.Injector
-
-