Package com.google.inject.internal
Class DefaultConstructionProxyFactory.ReflectiveProxy<T>
- java.lang.Object
-
- com.google.inject.internal.DefaultConstructionProxyFactory.ReflectiveProxy<T>
-
- All Implemented Interfaces:
ConstructionProxy<T>
- Enclosing class:
- DefaultConstructionProxyFactory<T>
private static final class DefaultConstructionProxyFactory.ReflectiveProxy<T> extends java.lang.Object implements ConstructionProxy<T>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.reflect.Constructor<T>constructor(package private) InjectionPointinjectionPoint
-
Constructor Summary
Constructors Constructor Description ReflectiveProxy(InjectionPoint injectionPoint, java.lang.reflect.Constructor<T> constructor)
-
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.TnewInstance(java.lang.Object... arguments)Constructs an instance ofTfor the given arguments.
-
-
-
Field Detail
-
constructor
final java.lang.reflect.Constructor<T> constructor
-
injectionPoint
final InjectionPoint injectionPoint
-
-
Constructor Detail
-
ReflectiveProxy
ReflectiveProxy(InjectionPoint injectionPoint, java.lang.reflect.Constructor<T> constructor)
-
-
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>
-
-