- cache(Key, Class<?>) - Method in class org.proxy4j.core.util.ClassCache
-
- CglibProxyFactory - Class in org.proxy4j.core.cglib
-
- CglibProxyFactory() - Constructor for class org.proxy4j.core.cglib.CglibProxyFactory
-
- CglibProxyFactory(ClassLoader) - Constructor for class org.proxy4j.core.cglib.CglibProxyFactory
-
- ClassCache - Class in org.proxy4j.core.util
- ClassCache() - Constructor for class org.proxy4j.core.util.ClassCache
-
- ClassHashKey - Class in org.proxy4j.core.util
-
Key implementation that uses the classes implmented or extended
by the proxy class.
- ClassHashKey(ClassLoader, Class<?>...) - Constructor for class org.proxy4j.core.util.ClassHashKey
-
Constructor takes the class loader of the proxy and the classes
which the proxy extends or implements.
- ClassHashKey(ClassLoader, Collection<Class<?>>) - Constructor for class org.proxy4j.core.util.ClassHashKey
-
Constructor takes the class loader of the proxy and the classes
which the proxy extends or implements.
- clear() - Method in class org.proxy4j.core.struct.IdentityHashSet
-
- clear() - Method in class org.proxy4j.core.struct.WeakHashSet
-
- compareTo(SignatureKey) - Method in class org.proxy4j.core.reflect.SignatureKey
-
Compares two signatures on method name, number of parameters, and finally
the parameter types themselves.
- contains(Object) - Method in class org.proxy4j.core.struct.WeakHashSet
-
- create() - Method in interface org.proxy4j.core.build.InterceptorCreator
-
Creates the interceptor proxy using information accumulated in
previous build steps.
- createProxy(Class<T>, T, Class<? extends Annotation>, MethodInterceptor...) - Method in class org.proxy4j.core.BaseProxyFactory
-
- createProxy(Class<T>, Provider<T>) - Method in class org.proxy4j.core.cglib.CglibProxyFactory
-
The proxy class in this implementation does not have to be an interface.
- createProxy(Class<T>, ProxyHandler<T>) - Method in class org.proxy4j.core.cglib.CglibProxyFactory
-
The proxy class in this implementation does not have to be an interface.
- createProxy(Class<?>[], ProxyHandler<?>) - Method in class org.proxy4j.core.cglib.CglibProxyFactory
-
The proxy classes must be interfaces, or an GenerationException will be thrown.
- createProxy(Class<T>, Provider<T>) - Method in class org.proxy4j.core.javassist.JavassistProxyFactory
-
- createProxy(Class<T>, ProxyHandler<T>) - Method in class org.proxy4j.core.javassist.JavassistProxyFactory
-
- createProxy(Class<?>[], ProxyHandler<?>) - Method in class org.proxy4j.core.javassist.JavassistProxyFactory
-
- createProxy(Class<T>, Provider<T>) - Method in class org.proxy4j.core.jdk.JdkProxyFactory
-
The proxy class (first argument) must be an interface, or an IllegalArgumentException will be thrown.
- createProxy(Class<T>, ProxyHandler<T>) - Method in class org.proxy4j.core.jdk.JdkProxyFactory
-
The proxy class (first argument) must be an interface, or an IllegalArgumentException will be thrown.
- createProxy(Class<?>[], ProxyHandler<?>) - Method in class org.proxy4j.core.jdk.JdkProxyFactory
-
- createProxy(Class<T>, Provider<T>) - Method in interface org.proxy4j.core.ProxyFactory
-
Creates a "virtual" proxy where method invocations on the proxy are delegated
to the provided instance.
- createProxy(Class<T>, ProxyHandler<T>) - Method in interface org.proxy4j.core.ProxyFactory
-
Creates a proxy where method invocations on the proxy are passed to a single
invoke method on the
ProxyHandler.
- createProxy(Class<?>[], ProxyHandler<?>) - Method in interface org.proxy4j.core.ProxyFactory
-
Creates a proxy that implements multiple interfaces where invocations on that proxy are
passed to a single
invoke method on the
ProxyHandler.
- createProxy(Class<T>, T, Class<? extends Annotation>, MethodInterceptor...) - Method in interface org.proxy4j.core.ProxyFactory
-
Creates a "protection" proxy where method invocations on the proxy are intercepted by the
chain of MethodInterceptors before (optionally) being invoked on the target.
- GenerationException - Exception in org.proxy4j.core
-
Exception indicating a failure in proxy generation.
- GenerationException(String) - Constructor for exception org.proxy4j.core.GenerationException
-
Creates a GenerationException with a message.
- GenerationException(String, Throwable) - Constructor for exception org.proxy4j.core.GenerationException
-
Creates a GenerationException with a message and an
underlying cause.
- get() - Method in class org.proxy4j.core.init.LazyProvider
-
Gets the instance of T lazily.
- get(int) - Static method in enum org.proxy4j.core.reflect.Visibility
-
Returns the visibility from the given modifier flag set.
- get(int) - Method in class org.proxy4j.core.struct.WeakArrayList
-
- getArguments() - Method in class org.proxy4j.core.javassist.JavassistMethodInvocation
-
- getArguments() - Method in class org.proxy4j.core.javassist.JavassistProxyInvocation
-
The arguments passed to the target proxy invocation.
- getArguments() - Method in class org.proxy4j.core.jdk.JdkMethodInvocation
- getArguments() - Method in interface org.proxy4j.core.ProxyInvocation
-
The arguments passed to the target proxy invocation.
- getClass(Key) - Method in class org.proxy4j.core.util.ClassCache
-
- getClassLoader() - Method in class org.proxy4j.core.util.Key
-
Returns the class loader of the proxy.
- getClassName(String, String, Object, Predicate) - Method in class org.proxy4j.core.cglib.NamingPolicyAdapter
-
- getInterceptors(Method) - Method in interface org.proxy4j.core.InterceptorFactory
-
Returns a list of interceptors for the given method.
- getMethod() - Method in class org.proxy4j.core.javassist.JavassistMethodInvocation
-
- getMethod() - Method in class org.proxy4j.core.javassist.JavassistProxyInvocation
-
Return the method on which the proxy invocation was made.
- getMethod() - Method in class org.proxy4j.core.jdk.JdkMethodInvocation
- getMethod() - Method in interface org.proxy4j.core.ProxyInvocation
-
Return the method on which the proxy invocation was made.
- getMethods(MethodFilter) - Method in class org.proxy4j.core.reflect.BasicMethodExtractor
-
- getMethods(MethodFilter) - Method in class org.proxy4j.core.reflect.InheritableMethodExtractor
-
Returns accessible methods that pass the given filter.
- getMethods(MethodFilter) - Method in interface org.proxy4j.core.reflect.MethodExtractor
-
- getMethods(MethodFilter) - Method in class org.proxy4j.core.reflect.MultitypeMethodExtractor
-
- getModifiers(Member) - Static method in enum org.proxy4j.core.reflect.Modifier
-
Returns a set of the Modifier enum values that apply to
the given class member.
- getName() - Method in class org.proxy4j.core.reflect.SignatureKey
-
Gets the method name.
- getNamingStrategy() - Method in class org.proxy4j.core.BaseProxyFactory
-
Returns a
NamingPolicy that can be used to create
proxy class names.
- getOwningPackageName() - Method in class org.proxy4j.core.reflect.UnitypeMethodExtractor
-
Returns the package of the owning type.
- getOwningType() - Method in class org.proxy4j.core.reflect.UnitypeMethodExtractor
-
Returns the primary/owning type of the methods to be proxied.
- getPackageName(Class<?>) - Method in class org.proxy4j.core.reflect.BaseMethodExtractor
-
Returns the package name of the class.
- getParameterTypes() - Method in class org.proxy4j.core.reflect.SignatureKey
-
Gets the parameter types to the method.
- getPreferredClassLoader() - Method in class org.proxy4j.core.BaseProxyFactory
-
Returns the specified
ClassLoader that is used to define any
proxy interfaces.
- getProxy() - Method in class org.proxy4j.core.javassist.JavassistProxyInvocation
-
Returns the proxy on which the method was invoked.
- getProxy() - Method in interface org.proxy4j.core.ProxyInvocation
-
Returns the proxy on which the method was invoked.
- getProxyableMethods() - Method in class org.proxy4j.core.reflect.BasicMethodExtractor
-
Returns all methods that can be proxied.
- getProxyableMethods() - Method in class org.proxy4j.core.reflect.InheritableMethodExtractor
-
Returns all methods that can be proxied.
- getProxyableMethods() - Method in interface org.proxy4j.core.reflect.MethodExtractor
-
Returns all methods that can be proxied.
- getProxyableMethods() - Method in class org.proxy4j.core.reflect.MultitypeMethodExtractor
-
- getProxyClassLoader(Class<?>) - Method in class org.proxy4j.core.BaseProxyFactory
-
Returns the
ClassLoader that should be used to load
the proxy.
- getProxyName(String, Object) - Method in class org.proxy4j.core.util.DefaultNamingPolicy
-
- getProxyName(String, Object) - Method in interface org.proxy4j.core.util.NamingPolicy
-
Returns the generated proxy class name based on the given type
and the key.
- getPublicMethods() - Method in class org.proxy4j.core.reflect.BasicMethodExtractor
-
Returns all public methods that are proxyable.
- getPublicMethods() - Method in class org.proxy4j.core.reflect.InheritableMethodExtractor
-
Returns all public methods that are proxyable.
- getPublicMethods() - Method in interface org.proxy4j.core.reflect.MethodExtractor
-
Returns all public methods that are proxyable.
- getPublicMethods() - Method in class org.proxy4j.core.reflect.MultitypeMethodExtractor
-
- getStaticPart() - Method in class org.proxy4j.core.javassist.JavassistMethodInvocation
-
- getStaticPart() - Method in class org.proxy4j.core.jdk.JdkMethodInvocation
- getThis() - Method in class org.proxy4j.core.javassist.JavassistMethodInvocation
-
- getThis() - Method in class org.proxy4j.core.jdk.JdkMethodInvocation
- getVisibility(Member) - Static method in enum org.proxy4j.core.reflect.Visibility
-
- IdentityHashSet<T> - Class in org.proxy4j.core.struct
-
A
Set implementation based on reference (not object) equality.
- IdentityHashSet() - Constructor for class org.proxy4j.core.struct.IdentityHashSet
-
- IdentityHashSet(int) - Constructor for class org.proxy4j.core.struct.IdentityHashSet
-
- IdentityHashSet(Collection<? extends T>) - Constructor for class org.proxy4j.core.struct.IdentityHashSet
-
- InheritableMethodExtractor - Class in org.proxy4j.core.reflect
-
A two-level MethodExtractor where the super type acts as an additional source of information,
e.g.
- InheritableMethodExtractor(Class<T>, Class<? super T>) - Constructor for class org.proxy4j.core.reflect.InheritableMethodExtractor
-
Creates a
MethodExtractor with a super type that acts as an additional
source of information for
MethodFilters, e.g.
- init() - Method in class org.proxy4j.core.init.LazyProvider
-
Must be overriden to initialize the variable reference.
- InterceptorBindingBuilder<T> - Interface in org.proxy4j.core.build
-
An intermediate builder used by
InterceptorBuilder to bind a set of
methods on the target type to the given interceptors.
- InterceptorBuilder<T> - Interface in org.proxy4j.core.build
-
The InterceptorBuilder is the root builder for an interceptor proxy, otherwise
known as a "protection" proxy or "Around Advice" in AOP.
- InterceptorChain - Class in org.proxy4j.core
-
An adaptation of Guice's
InterceptorStackCallback
(author: Bob Lee), but generalized to use the AOP alliance interfaces.
- InterceptorChain(List<MethodInterceptor>) - Constructor for class org.proxy4j.core.InterceptorChain
-
- InterceptorChain(MethodInterceptor...) - Constructor for class org.proxy4j.core.InterceptorChain
-
- InterceptorCreator<T> - Interface in org.proxy4j.core.build
-
The final builder used internally by
InterceptorBuilder
to build the proxy when the minimal required state has been reached.
- InterceptorFactory - Interface in org.proxy4j.core
-
Factory which can be used to create per-method instances of interceptor(s).
- invoke(MethodInvocation) - Method in class org.proxy4j.core.InterceptorChain
-
Invokes the interceptor chain.
- invoke(T) - Method in class org.proxy4j.core.javassist.JavassistProxyInvocation
-
Executes this invocation on a target object of the same type.
- invoke(T) - Method in interface org.proxy4j.core.ProxyInvocation
-
Executes this invocation on a target object of the same type.
- isEmpty() - Method in class org.proxy4j.core.struct.IdentityHashSet
-
- isEmpty() - Method in class org.proxy4j.core.struct.WeakHashSet
-
- isIncludeObjectMethods() - Method in class org.proxy4j.core.reflect.BaseMethodExtractor
-
True if java.lang.Object methods should be proxied.
- isIncludeObjectMethods() - Method in interface org.proxy4j.core.reflect.MethodExtractor
-
True if the MethodExtractor extracts Object methods.
- isObjectMethod(Method) - Method in class org.proxy4j.core.reflect.InheritableMethodExtractor
-
True if the method is declared by java.lang.Object.
- isObjectMethod(Method) - Method in class org.proxy4j.core.reflect.UnitypeMethodExtractor
-
True if the method is declared by java.lang.Object.
- isProxyable(Method) - Method in class org.proxy4j.core.reflect.BasicMethodExtractor
-
Determines if the given method is proxyable.
- isProxyable(Method) - Method in class org.proxy4j.core.reflect.InheritableMethodExtractor
-
Determines if the given method is proxyable.
- isProxyable(Method) - Method in class org.proxy4j.core.reflect.UnitypeMethodExtractor
-
Determines if the given method is proxyable.
- iterator() - Method in class org.proxy4j.core.struct.IdentityHashSet
-
- iterator() - Method in class org.proxy4j.core.struct.WeakArrayList
-
- iterator() - Method in class org.proxy4j.core.struct.WeakHashSet
-