final class ProxyFactory<T> extends java.lang.Object implements ConstructionProxyFactory<T>
Modifier and Type | Class and Description |
---|---|
private static class |
ProxyFactory.IndicesCallbackFilter
A callback filter that maps methods to unique IDs.
|
private static class |
ProxyFactory.MethodInterceptorsPair |
private static class |
ProxyFactory.ProxyConstructor<T>
Constructs instances that participate in AOP.
|
Modifier and Type | Field and Description |
---|---|
private net.sf.cglib.proxy.Callback[] |
callbacks |
private java.lang.Class<T> |
declaringClass |
private InjectionPoint |
injectionPoint |
private com.google.common.collect.ImmutableMap<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> |
interceptors |
private static java.util.logging.Logger |
logger |
private java.util.List<java.lang.reflect.Method> |
methods |
private BytecodeGen.Visibility |
visibility
PUBLIC is default; it's used if all the methods we're intercepting are public.
|
Constructor and Description |
---|
ProxyFactory(InjectionPoint injectionPoint,
java.lang.Iterable<MethodAspect> methodAspects) |
Modifier and Type | Method and Description |
---|---|
ConstructionProxy<T> |
create()
Gets a construction proxy for the given constructor.
|
com.google.common.collect.ImmutableMap<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> |
getInterceptors()
Returns the interceptors that apply to the constructed type.
|
private static final java.util.logging.Logger logger
private final InjectionPoint injectionPoint
private final com.google.common.collect.ImmutableMap<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> interceptors
private final java.lang.Class<T> declaringClass
private final java.util.List<java.lang.reflect.Method> methods
private final net.sf.cglib.proxy.Callback[] callbacks
private BytecodeGen.Visibility visibility
ProxyFactory(InjectionPoint injectionPoint, java.lang.Iterable<MethodAspect> methodAspects)
public com.google.common.collect.ImmutableMap<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> getInterceptors()
public ConstructionProxy<T> create() throws ErrorsException
ConstructionProxyFactory
create
in interface ConstructionProxyFactory<T>
ErrorsException