final class ProxyFactory<T> extends java.lang.Object implements ConstructionProxyFactory<T>
Modifier and Type | Class and Description |
---|---|
private static class |
ProxyFactory.ProxyConstructor<T>
Constructs instances that participate in AOP.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.InvocationHandler[] |
callbacks |
private java.util.function.Function<java.lang.String,java.util.function.BiFunction<java.lang.Object,java.lang.Object[],java.lang.Object>> |
enhancer |
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 |
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 java.util.function.Function<java.lang.String,java.util.function.BiFunction<java.lang.Object,java.lang.Object[],java.lang.Object>> enhancer
private final com.google.common.collect.ImmutableMap<java.lang.reflect.Method,java.util.List<org.aopalliance.intercept.MethodInterceptor>> interceptors
private final java.lang.reflect.InvocationHandler[] callbacks
ProxyFactory(InjectionPoint injectionPoint, java.lang.Iterable<MethodAspect> methodAspects) throws ErrorsException
ErrorsException
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