Package com.google.inject.internal
Class ProxyFactory<T>
java.lang.Object
com.google.inject.internal.ProxyFactory<T>
- All Implemented Interfaces:
ConstructionProxyFactory<T>
Builds a construction proxy that can participate in AOP. This class manages applying type and
method matchers to come up with the set of intercepted methods.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Constructs instances that participate in AOP. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InvocationHandler[]
private final InjectionPoint
private final com.google.common.collect.ImmutableMap
<Method, List<org.aopalliance.intercept.MethodInterceptor>> private static final Logger
-
Constructor Summary
ConstructorsConstructorDescriptionProxyFactory
(InjectionPoint injectionPoint, Iterable<MethodAspect> methodAspects) -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Gets a construction proxy for the given constructor.Returns the interceptors that apply to the constructed type.
-
Field Details
-
logger
-
injectionPoint
-
enhancer
-
interceptors
-
callbacks
-
-
Constructor Details
-
ProxyFactory
ProxyFactory(InjectionPoint injectionPoint, Iterable<MethodAspect> methodAspects) throws ErrorsException - Throws:
ErrorsException
-
-
Method Details
-
getInterceptors
public com.google.common.collect.ImmutableMap<Method,List<org.aopalliance.intercept.MethodInterceptor>> getInterceptors()Returns the interceptors that apply to the constructed type. -
create
Description copied from interface:ConstructionProxyFactory
Gets a construction proxy for the given constructor.- Specified by:
create
in interfaceConstructionProxyFactory<T>
- Throws:
ErrorsException
-