Package com.google.inject.internal
Class ProxyFactory.ProxyConstructor<T>
- java.lang.Object
-
- com.google.inject.internal.ProxyFactory.ProxyConstructor<T>
-
- All Implemented Interfaces:
ConstructionProxy<T>
- Enclosing class:
- ProxyFactory<T>
private static class ProxyFactory.ProxyConstructor<T> extends java.lang.Object implements ConstructionProxy<T>
Constructs instances that participate in AOP.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) net.sf.cglib.proxy.Callback[]
callbacks
(package private) java.lang.reflect.Constructor<T>
constructor
(package private) int
constructorIndex
(package private) java.lang.Class<?>
enhanced
(package private) net.sf.cglib.reflect.FastClass
fastClass
(package private) InjectionPoint
injectionPoint
(package private) com.google.common.collect.ImmutableMap<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>>
methodInterceptors
-
Constructor Summary
Constructors Constructor Description ProxyConstructor(net.sf.cglib.proxy.Enhancer enhancer, InjectionPoint injectionPoint, net.sf.cglib.proxy.Callback[] callbacks, com.google.common.collect.ImmutableMap<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> methodInterceptors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 ofT
for the given arguments.
-
-
-
Field Detail
-
enhanced
final java.lang.Class<?> enhanced
-
injectionPoint
final InjectionPoint injectionPoint
-
constructor
final java.lang.reflect.Constructor<T> constructor
-
callbacks
final net.sf.cglib.proxy.Callback[] callbacks
-
constructorIndex
final int constructorIndex
-
methodInterceptors
final com.google.common.collect.ImmutableMap<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> methodInterceptors
-
fastClass
final net.sf.cglib.reflect.FastClass fastClass
-
-
Constructor Detail
-
ProxyConstructor
ProxyConstructor(net.sf.cglib.proxy.Enhancer enhancer, InjectionPoint injectionPoint, net.sf.cglib.proxy.Callback[] callbacks, com.google.common.collect.ImmutableMap<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> methodInterceptors)
-
-
Method Detail
-
newInstance
public T newInstance(java.lang.Object... arguments) throws java.lang.reflect.InvocationTargetException
Description copied from interface:ConstructionProxy
Constructs an instance ofT
for the given arguments.- Specified by:
newInstance
in interfaceConstructionProxy<T>
- Throws:
java.lang.reflect.InvocationTargetException
-
getInjectionPoint
public InjectionPoint getInjectionPoint()
Description copied from interface:ConstructionProxy
Returns the injection point for this constructor.- Specified by:
getInjectionPoint
in interfaceConstructionProxy<T>
-
getConstructor
public java.lang.reflect.Constructor<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<java.lang.reflect.Method,java.util.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>
-
-