Package com.google.inject.internal
Interface ConstructionProxy<T>
-
- All Known Implementing Classes:
DefaultConstructionProxyFactory.FastClassProxy,DefaultConstructionProxyFactory.ReflectiveProxy,ProxyFactory.ProxyConstructor
interface ConstructionProxy<T>Proxies calls to aConstructorfor a classT.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
newInstance
T newInstance(java.lang.Object... arguments) throws java.lang.reflect.InvocationTargetException
Constructs an instance ofTfor the given arguments.- Throws:
java.lang.reflect.InvocationTargetException
-
getInjectionPoint
InjectionPoint getInjectionPoint()
Returns the injection point for this constructor.
-
getConstructor
java.lang.reflect.Constructor<T> getConstructor()
Returns the injected constructor. If the injected constructor is synthetic (such as generated code for method interception), the natural constructor is returned.
-
getMethodInterceptors
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.
-
-