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 Object
implements ConstructionProxy<T>
Constructs instances that participate in AOP.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final InvocationHandler[](package private) final Constructor<T> (package private) final BiFunction<Object, Object[], Object> (package private) final InjectionPoint(package private) final com.google.common.collect.ImmutableMap<Method, List<org.aopalliance.intercept.MethodInterceptor>> -
Constructor Summary
ConstructorsConstructorDescriptionProxyConstructor(InjectionPoint injectionPoint, Function<String, BiFunction<Object, Object[], Object>> enhancer, com.google.common.collect.ImmutableMap<Method, List<org.aopalliance.intercept.MethodInterceptor>> interceptors, InvocationHandler[] callbacks) -
Method Summary
Modifier and TypeMethodDescriptionReturns the injected constructor.Returns the injection point for this constructor.Returns the interceptors applied to each method, in order of invocation.newInstance(Object... arguments) Constructs an instance ofTfor the given arguments.
-
Field Details
-
injectionPoint
-
constructor
-
enhancedConstructor
-
interceptors
-
callbacks
-
-
Constructor Details
-
ProxyConstructor
ProxyConstructor(InjectionPoint injectionPoint, Function<String, BiFunction<Object, Object[], Object>> enhancer, com.google.common.collect.ImmutableMap<Method, List<org.aopalliance.intercept.MethodInterceptor>> interceptors, InvocationHandler[] callbacks)
-
-
Method Details
-
newInstance
Description copied from interface:ConstructionProxyConstructs an instance ofTfor the given arguments.- Specified by:
newInstancein interfaceConstructionProxy<T>- Throws:
InvocationTargetException
-
getInjectionPoint
Description copied from interface:ConstructionProxyReturns the injection point for this constructor.- Specified by:
getInjectionPointin interfaceConstructionProxy<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<Method,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>
-