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 java.lang.Object implements ConstructionProxy<T>
AConstructionProxythat uses FastClass to invoke the constructor.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.reflect.Constructor<T>constructor(package private) net.sf.cglib.reflect.FastClassfc(package private) intindex(package private) InjectionPointinjectionPoint
-
Constructor Summary
Constructors Modifier Constructor Description privateFastClassProxy(InjectionPoint injectionPoint, java.lang.reflect.Constructor<T> constructor, net.sf.cglib.reflect.FastClass fc, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.Constructor<T>getConstructor()Returns the injected constructor.InjectionPointgetInjectionPoint()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.TnewInstance(java.lang.Object... arguments)Constructs an instance ofTfor the given arguments.
-
-
-
Field Detail
-
injectionPoint
final InjectionPoint injectionPoint
-
constructor
final java.lang.reflect.Constructor<T> constructor
-
fc
final net.sf.cglib.reflect.FastClass fc
-
index
final int index
-
-
Constructor Detail
-
FastClassProxy
private FastClassProxy(InjectionPoint injectionPoint, java.lang.reflect.Constructor<T> constructor, net.sf.cglib.reflect.FastClass fc, int index)
-
-
Method Detail
-
newInstance
public T newInstance(java.lang.Object... arguments) throws java.lang.reflect.InvocationTargetException
Description copied from interface:ConstructionProxyConstructs an instance ofTfor the given arguments.- Specified by:
newInstancein interfaceConstructionProxy<T>- Throws:
java.lang.reflect.InvocationTargetException
-
getInjectionPoint
public InjectionPoint getInjectionPoint()
Description copied from interface:ConstructionProxyReturns the injection point for this constructor.- Specified by:
getInjectionPointin interfaceConstructionProxy<T>
-
getConstructor
public java.lang.reflect.Constructor<T> getConstructor()
Description copied from interface:ConstructionProxyReturns the injected constructor. If the injected constructor is synthetic (such as generated code for method interception), the natural constructor is returned.- Specified by:
getConstructorin interfaceConstructionProxy<T>
-
getMethodInterceptors
public com.google.common.collect.ImmutableMap<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> getMethodInterceptors()
Description copied from interface:ConstructionProxyReturns the interceptors applied to each method, in order of invocation.- Specified by:
getMethodInterceptorsin interfaceConstructionProxy<T>
-
-