Package com.google.inject.internal
Class DefaultConstructionProxyFactory.FastClassProxy<T>
java.lang.Object
com.google.inject.internal.DefaultConstructionProxyFactory.FastClassProxy<T>
- All Implemented Interfaces:
ConstructionProxy<T>
- Enclosing class:
- DefaultConstructionProxyFactory<T>
private static final class DefaultConstructionProxyFactory.FastClassProxy<T>
extends Object
implements ConstructionProxy<T>
A
ConstructionProxy
that uses bytecode generation to invoke the constructor.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Constructor<T>
(package private) final BiFunction<Object,
Object[], Object> (package private) final InjectionPoint
-
Constructor Summary
ConstructorsConstructorDescriptionFastClassProxy
(InjectionPoint injectionPoint, Constructor<T> constructor, BiFunction<Object, Object[], Object> fastConstructor) -
Method Summary
Modifier and TypeMethodDescriptionReturns the injected constructor.Returns the injection point for this constructor.Returns the interceptors applied to each method, in order of invocation.newInstance
(Object... arguments) Constructs an instance ofT
for the given arguments.
-
Field Details
-
injectionPoint
-
constructor
-
fastConstructor
-
-
Constructor Details
-
FastClassProxy
FastClassProxy(InjectionPoint injectionPoint, Constructor<T> constructor, BiFunction<Object, Object[], Object> fastConstructor)
-
-
Method Details
-
newInstance
Description copied from interface:ConstructionProxy
Constructs an instance ofT
for the given arguments.- Specified by:
newInstance
in interfaceConstructionProxy<T>
- Throws:
InvocationTargetException
-
getInjectionPoint
Description copied from interface:ConstructionProxy
Returns the injection point for this constructor.- Specified by:
getInjectionPoint
in interfaceConstructionProxy<T>
-
getConstructor
Description copied from interface:ConstructionProxy
Returns the injected constructor. If the injected constructor is synthetic (such as generated code for method interception), the natural constructor is returned.- Specified by:
getConstructor
in interfaceConstructionProxy<T>
-
getMethodInterceptors
public com.google.common.collect.ImmutableMap<Method,List<org.aopalliance.intercept.MethodInterceptor>> getMethodInterceptors()Description copied from interface:ConstructionProxy
Returns the interceptors applied to each method, in order of invocation.- Specified by:
getMethodInterceptors
in interfaceConstructionProxy<T>
-