private static final class DefaultConstructionProxyFactory.FastClassProxy<T> extends java.lang.Object implements ConstructionProxy<T>
ConstructionProxy that uses bytecode generation to invoke the constructor.| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.reflect.Constructor<T> |
constructor |
(package private) java.util.function.BiFunction<java.lang.Object,java.lang.Object[],java.lang.Object> |
fastConstructor |
(package private) InjectionPoint |
injectionPoint |
| Constructor and Description |
|---|
FastClassProxy(InjectionPoint injectionPoint,
java.lang.reflect.Constructor<T> constructor,
java.util.function.BiFunction<java.lang.Object,java.lang.Object[],java.lang.Object> fastConstructor) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Constructor<T> |
getConstructor()
Returns the injected constructor.
|
InjectionPoint |
getInjectionPoint()
Returns the injection point for this constructor.
|
com.google.common.collect.ImmutableMap<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> |
getMethodInterceptors()
Returns the interceptors applied to each method, in order of invocation.
|
T |
newInstance(java.lang.Object... arguments)
Constructs an instance of
T for the given arguments. |
final InjectionPoint injectionPoint
final java.lang.reflect.Constructor<T> constructor
final java.util.function.BiFunction<java.lang.Object,java.lang.Object[],java.lang.Object> fastConstructor
FastClassProxy(InjectionPoint injectionPoint, java.lang.reflect.Constructor<T> constructor, java.util.function.BiFunction<java.lang.Object,java.lang.Object[],java.lang.Object> fastConstructor)
public T newInstance(java.lang.Object... arguments) throws java.lang.reflect.InvocationTargetException
ConstructionProxyT for the given arguments.newInstance in interface ConstructionProxy<T>java.lang.reflect.InvocationTargetExceptionpublic InjectionPoint getInjectionPoint()
ConstructionProxygetInjectionPoint in interface ConstructionProxy<T>public java.lang.reflect.Constructor<T> getConstructor()
ConstructionProxygetConstructor in interface ConstructionProxy<T>public com.google.common.collect.ImmutableMap<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> getMethodInterceptors()
ConstructionProxygetMethodInterceptors in interface ConstructionProxy<T>