A B C D E G H I L M N O P R S T W 

A

AbstractProxyClassGenerator - Class in org.apache.commons.proxy2.impl
A useful superclass for ProxyClassGenerator implementations.
AbstractProxyClassGenerator() - Constructor for class org.apache.commons.proxy2.impl.AbstractProxyClassGenerator
 
AbstractProxyFactory - Class in org.apache.commons.proxy2.impl
Base abstract ProxyFactory implementation, primarily providing implementations of the interface methods that are typically convenience constructs over the other methods.
AbstractProxyFactory() - Constructor for class org.apache.commons.proxy2.impl.AbstractProxyFactory
 
AbstractSubclassingProxyFactory - Class in org.apache.commons.proxy2.impl
Parent AbstractProxyFactory for implementations that permit the generation of proxies with a specific inheritance hierarchy.
AbstractSubclassingProxyFactory() - Constructor for class org.apache.commons.proxy2.impl.AbstractSubclassingProxyFactory
 
addElement(BaseTrainer<?, R>) - Method in class org.apache.commons.proxy2.stub.BaseAnnotationTrainer.StubAnnotationArrayBuilder
 
addElement(BaseTrainer<?, R>) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.StubArrayBuilder
 
addProxyTypes(Class<?>...) - Method in class org.apache.commons.proxy2.stub.StubBuilder
 
AnnotationBuilder<A extends Annotation> - Class in org.apache.commons.proxy2.stub
 
AnnotationInvoker - Class in org.apache.commons.proxy2.stub
 
AnnotationInvoker() - Constructor for class org.apache.commons.proxy2.stub.AnnotationInvoker
 
AnnotationTrainer<A extends Annotation> - Class in org.apache.commons.proxy2.stub
 
AnnotationTrainer() - Constructor for class org.apache.commons.proxy2.stub.AnnotationTrainer
 
AnnotationTrainer(Class<A>) - Constructor for class org.apache.commons.proxy2.stub.AnnotationTrainer
 
any() - Static method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils
 
any(Class<R>) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
argThat(ArgumentMatcher<R>) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
ArgumentMatcher<T> - Interface in org.apache.commons.proxy2.interceptor.matcher
 
ArgumentMatcherUtils - Class in org.apache.commons.proxy2.interceptor.matcher.argument
 
ArgumentMatcherUtils.EndsWithMatcher - Class in org.apache.commons.proxy2.interceptor.matcher.argument
 
ArgumentMatcherUtils.EndsWithMatcher(String) - Constructor for class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils.EndsWithMatcher
 
ArgumentMatcherUtils.RegexMatcher - Class in org.apache.commons.proxy2.interceptor.matcher.argument
 
ArgumentMatcherUtils.RegexMatcher(String) - Constructor for class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils.RegexMatcher
 

B

BaseAnnotationTrainer<S extends BaseAnnotationTrainer<S,A>,A extends Annotation> - Class in org.apache.commons.proxy2.stub
 
BaseAnnotationTrainer() - Constructor for class org.apache.commons.proxy2.stub.BaseAnnotationTrainer
 
BaseAnnotationTrainer(Class<A>) - Constructor for class org.apache.commons.proxy2.stub.BaseAnnotationTrainer
 
BaseAnnotationTrainer.StubAnnotationArrayBuilder<R> - Class in org.apache.commons.proxy2.stub
 
BaseAnnotationTrainer.WhenAnnotation<R> - Class in org.apache.commons.proxy2.stub
 
BaseAnnotationTrainer.WhenAnnotation() - Constructor for class org.apache.commons.proxy2.stub.BaseAnnotationTrainer.WhenAnnotation
 
BaseAnnotationTrainer.WhenAnnotationArray<R> - Class in org.apache.commons.proxy2.stub
 
BaseAnnotationTrainer.WhenAnnotationArray(Class<? extends R>) - Constructor for class org.apache.commons.proxy2.stub.BaseAnnotationTrainer.WhenAnnotationArray
 
BaseTrainer<S extends BaseTrainer<S,T>,T> - Class in org.apache.commons.proxy2.stub
 
BaseTrainer() - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer
Create a new BaseTrainer instance.
BaseTrainer(Class<T>) - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer
 
BaseTrainer.BaseWhen<R> - Class in org.apache.commons.proxy2.stub
 
BaseTrainer.BaseWhen() - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.BaseWhen
 
BaseTrainer.StubArrayBuilder<R> - Class in org.apache.commons.proxy2.stub
 
BaseTrainer.StubArrayBuilder(Class<? extends R>) - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.StubArrayBuilder
 
BaseTrainer.WhenBooleanArray - Class in org.apache.commons.proxy2.stub
 
BaseTrainer.WhenBooleanArray() - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.WhenBooleanArray
 
BaseTrainer.WhenByteArray - Class in org.apache.commons.proxy2.stub
 
BaseTrainer.WhenByteArray() - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.WhenByteArray
 
BaseTrainer.WhenCharArray - Class in org.apache.commons.proxy2.stub
 
BaseTrainer.WhenCharArray() - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.WhenCharArray
 
BaseTrainer.WhenClass - Class in org.apache.commons.proxy2.stub
Intermediate result of a when(Class) call.
BaseTrainer.WhenClass() - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.WhenClass
 
BaseTrainer.WhenDoubleArray - Class in org.apache.commons.proxy2.stub
 
BaseTrainer.WhenDoubleArray() - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.WhenDoubleArray
 
BaseTrainer.WhenFloatArray - Class in org.apache.commons.proxy2.stub
 
BaseTrainer.WhenFloatArray() - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.WhenFloatArray
 
BaseTrainer.WhenIntArray - Class in org.apache.commons.proxy2.stub
 
BaseTrainer.WhenIntArray() - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.WhenIntArray
 
BaseTrainer.WhenLongArray - Class in org.apache.commons.proxy2.stub
 
BaseTrainer.WhenLongArray() - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.WhenLongArray
 
BaseTrainer.WhenObject<R> - Class in org.apache.commons.proxy2.stub
 
BaseTrainer.WhenObject() - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.WhenObject
 
BaseTrainer.WhenObjectArray<R> - Class in org.apache.commons.proxy2.stub
 
BaseTrainer.WhenObjectArray(Class<? extends R>) - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.WhenObjectArray
 
BaseTrainer.WhenShortArray - Class in org.apache.commons.proxy2.stub
 
BaseTrainer.WhenShortArray() - Constructor for class org.apache.commons.proxy2.stub.BaseTrainer.WhenShortArray
 
bean(Class<T>) - Static method in class org.apache.commons.proxy2.provider.ObjectProviderUtils
 
BeanProvider<T> - Class in org.apache.commons.proxy2.provider
Uses Class.newInstance() to instantiate an object.
BeanProvider(Class<? extends T>) - Constructor for class org.apache.commons.proxy2.provider.BeanProvider
Constructs a provider which instantiates objects of the specified bean class.
build() - Method in class org.apache.commons.proxy2.stub.BaseTrainer.StubArrayBuilder
 
build() - Method in class org.apache.commons.proxy2.stub.StubBuilder
 
build() - Method in class org.apache.commons.proxy2.stub.StubInterceptorBuilder
 
buildDefault(Class<A>) - Static method in class org.apache.commons.proxy2.stub.AnnotationBuilder
 

C

canProxy(Class<?>...) - Method in class org.apache.commons.proxy2.impl.AbstractProxyFactory
Returns true if all proxyClasses are interfaces.
canProxy(Class<?>...) - Method in class org.apache.commons.proxy2.impl.AbstractSubclassingProxyFactory
Returns true if a suitable superclass can be found, given the desired proxyClasses.
canProxy(Class<?>...) - Method in interface org.apache.commons.proxy2.ProxyFactory
Learn whether this ProxyFactory is capable of creating a proxy for the specified set of classes.
cloning(T) - Static method in class org.apache.commons.proxy2.provider.ObjectProviderUtils
 
CloningProvider<T extends Cloneable> - Class in org.apache.commons.proxy2.provider
Merely calls clone() (reflectively) on the given Cloneable object.
CloningProvider(T) - Constructor for class org.apache.commons.proxy2.provider.CloningProvider
Constructs a provider which returns clone copies of the specified Cloneable object.
componentType - Variable in class org.apache.commons.proxy2.stub.BaseTrainer.StubArrayBuilder
 
componentType - Variable in class org.apache.commons.proxy2.stub.BaseTrainer.WhenObjectArray
 
constant(Object) - Static method in class org.apache.commons.proxy2.interceptor.InterceptorUtils
Creates an Interceptor which always returns a constant value (for all methods).
constant(T) - Static method in class org.apache.commons.proxy2.provider.ObjectProviderUtils
 
ConstantProvider<T> - Class in org.apache.commons.proxy2.provider
Always returns the same object.
ConstantProvider(T) - Constructor for class org.apache.commons.proxy2.provider.ConstantProvider
Create a new ConstantProvider instance.
convert(StringBuilder, Object) - Method in class org.apache.commons.proxy2.invoker.RecordedInvocation
Add a string representation of input to buffer.
createDelegatorProxy(ObjectProvider<?>, Class<?>...) - Method in class org.apache.commons.proxy2.impl.AbstractProxyFactory
Creates a proxy which delegates to the object provided by delegateProvider.
createDelegatorProxy(ObjectProvider<?>, Class<?>...) - Method in interface org.apache.commons.proxy2.ProxyFactory
Creates a proxy which delegates to the object provided by delegateProvider.
createDelegatorProxy(ClassLoader, ObjectProvider<?>, Class<?>...) - Method in interface org.apache.commons.proxy2.ProxyFactory
Creates a proxy which delegates to the object provided by delegateProvider.
createInterceptorProxy(Object, Interceptor, Class<?>...) - Method in class org.apache.commons.proxy2.impl.AbstractProxyFactory
Creates a proxy which passes through a interceptor before eventually reaching the target object.
createInterceptorProxy(Object, Interceptor, Class<?>...) - Method in interface org.apache.commons.proxy2.ProxyFactory
Creates a proxy which passes through a interceptor before eventually reaching the target object.
createInterceptorProxy(ClassLoader, Object, Interceptor, Class<?>...) - Method in interface org.apache.commons.proxy2.ProxyFactory
Creates a proxy which passes through a interceptor before eventually reaching the target object.
createInvokerProxy(Invoker, Class<?>...) - Method in class org.apache.commons.proxy2.impl.AbstractProxyFactory
Creates a proxy which uses the provided Invoker to handle all method invocations.
createInvokerProxy(Invoker, Class<?>...) - Method in interface org.apache.commons.proxy2.ProxyFactory
Creates a proxy which uses the provided Invoker to handle all method invocations.
createInvokerProxy(ClassLoader, Invoker, Class<?>...) - Method in interface org.apache.commons.proxy2.ProxyFactory
Creates a proxy which uses the provided Invoker to handle all method invocations.

D

DeclaredByMatcher - Class in org.apache.commons.proxy2.interceptor.matcher.invocation
InvocationMatcher based on declaring class of the method invoked.
DeclaredByMatcher(Class<?>) - Constructor for class org.apache.commons.proxy2.interceptor.matcher.invocation.DeclaredByMatcher
Equivalent to DeclaredByMatcher.DeclaredByMatcher(Class, boolean)(declaredByType, false)
DeclaredByMatcher(Class<?>, boolean) - Constructor for class org.apache.commons.proxy2.interceptor.matcher.invocation.DeclaredByMatcher
Create a DeclaredByMatcher instance.
DelegatingInvoker<T> - Class in org.apache.commons.proxy2.invoker
Delegates a method invocation to the object provided by an ObjectProvider.
DelegatingInvoker(ObjectProvider<? extends T>) - Constructor for class org.apache.commons.proxy2.invoker.DelegatingInvoker
 
DuckTypingInvoker - Class in org.apache.commons.proxy2.invoker
An invoker which supports "duck typing", meaning that it finds a matching method on the object returned from the target provider and invokes it.
DuckTypingInvoker(ObjectProvider<?>) - Constructor for class org.apache.commons.proxy2.invoker.DuckTypingInvoker
Create a new DuckTypingInvoker instance.

E

elements - Variable in class org.apache.commons.proxy2.stub.BaseTrainer.StubArrayBuilder
 
EMPTY_ARGUMENT_TYPES - Static variable in class org.apache.commons.proxy2.ProxyUtils
 
EMPTY_ARGUMENTS - Static variable in class org.apache.commons.proxy2.ProxyUtils
 
endsWith(String) - Static method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils
 
eq(T) - Static method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils
 
eq(R) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
equals(Object) - Method in class org.apache.commons.proxy2.impl.MethodSignature

G

generateProxyClass(ClassLoader, Class<?>...) - Method in interface org.apache.commons.proxy2.impl.ProxyClassGenerator
Generates a proxy class for the supplied ClassLoader and proxy classes.
getAllInterfaces(Class<?>) - Static method in class org.apache.commons.proxy2.ProxyUtils
Gets an array of Class objects representing all interfaces implemented by the given class and its superclasses.
getArguments() - Method in interface org.apache.commons.proxy2.Invocation
Returns the arguments being passed to this method invocation.
getArguments() - Method in class org.apache.commons.proxy2.invoker.RecordedInvocation
Get the arguments.
getImplementationMethods(Class<?>[]) - Static method in class org.apache.commons.proxy2.impl.AbstractProxyClassGenerator
Returns all methods that a proxy class must implement from the proxy interfaces.
getInner() - Method in class org.apache.commons.proxy2.provider.ProviderDecorator
 
getInvokedMethod() - Method in class org.apache.commons.proxy2.invoker.RecordedInvocation
Get the invokedMethod.
getJavaClassName(Class<?>) - Static method in class org.apache.commons.proxy2.ProxyUtils
Returns the class name as you would expect to see it in Java code.
getMethod() - Method in interface org.apache.commons.proxy2.Invocation
Returns the method being called.
getObject() - Method in interface org.apache.commons.proxy2.ObjectProvider
Returns an object.
getObject() - Method in class org.apache.commons.proxy2.provider.BeanProvider
Returns an object.
getObject() - Method in class org.apache.commons.proxy2.provider.CloningProvider
Returns an object.
getObject() - Method in class org.apache.commons.proxy2.provider.ConstantProvider
Returns an object.
getObject() - Method in class org.apache.commons.proxy2.provider.ProviderDecorator
Returns an object.
getObject() - Method in class org.apache.commons.proxy2.provider.SingletonProvider
Returns an object.
getProxy() - Method in interface org.apache.commons.proxy2.Invocation
Returns the proxy object on which this invocation was invoked.
getProxyClass(ClassLoader, Class<?>[]) - Method in class org.apache.commons.proxy2.impl.ProxyClassCache
Returns the proxy class generated by the ProxyClassGenerator using the specified ClassLoader and array of proxy classes.
getRecordedInvocations() - Method in class org.apache.commons.proxy2.invoker.recorder.InvocationRecorder
Get the invocations that have been recorded up to this point.
getSuperclass(Class<?>[]) - Static method in class org.apache.commons.proxy2.impl.AbstractSubclassingProxyFactory
Returns either Object if all of the proxyClasses are interfaces or the single non-interface class from proxyClasses.
getWrapperClass(Class<?>) - Static method in class org.apache.commons.proxy2.ProxyUtils
Returns the wrapper class for the given primitive type.
gt(C) - Static method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils
 
gte(C) - Static method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils
 

H

hashCode() - Method in class org.apache.commons.proxy2.impl.MethodSignature

I

INSTANCE - Static variable in class org.apache.commons.proxy2.invoker.NullInvoker
Statically available instance.
INSTANCE - Static variable in class org.apache.commons.proxy2.stub.AnnotationInvoker
 
intercept(Invocation) - Method in interface org.apache.commons.proxy2.Interceptor
Intercept the specified Invocation.
intercept(Invocation) - Method in class org.apache.commons.proxy2.interceptor.InvokerInterceptor
 
intercept(Invocation) - Method in class org.apache.commons.proxy2.interceptor.ObjectProviderInterceptor
 
intercept(Invocation) - Method in class org.apache.commons.proxy2.interceptor.SwitchInterceptor
 
intercept(Invocation) - Method in class org.apache.commons.proxy2.interceptor.ThrowingInterceptor
 
Interceptor - Interface in org.apache.commons.proxy2
"Intercepts" a method invocation.
InterceptorUtils - Class in org.apache.commons.proxy2.interceptor
 
Invocation - Interface in org.apache.commons.proxy2
Method invocation for use by an Interceptor.
InvocationHandlerAdapter - Class in org.apache.commons.proxy2.invoker
An adapter class to adapt the JDK's InvocationHandler interface to Commons Proxy's Invoker interface.
InvocationHandlerAdapter(InvocationHandler) - Constructor for class org.apache.commons.proxy2.invoker.InvocationHandlerAdapter
Create a new InvocationHandlerAdapter instance.
InvocationMatcher - Interface in org.apache.commons.proxy2.interceptor.matcher
An InvocationMatcher is used to conditionally match Invocation objects based on some criteria such as method name, parameter values, etc.
InvocationRecorder - Class in org.apache.commons.proxy2.invoker.recorder
An InvocationRecorder records method invocations against its generated proxies.
InvocationRecorder(ProxyFactory) - Constructor for class org.apache.commons.proxy2.invoker.recorder.InvocationRecorder
Create a new InvocationRecorder instance.
invoke(Object, Method, Object[]) - Method in class org.apache.commons.proxy2.invoker.DelegatingInvoker
 
invoke(Object, Method, Object[]) - Method in class org.apache.commons.proxy2.invoker.DuckTypingInvoker
"Invokes" the method.
invoke(Object, Method, Object[]) - Method in class org.apache.commons.proxy2.invoker.InvocationHandlerAdapter
"Invokes" the method.
invoke(Object, Method, Object[]) - Method in interface org.apache.commons.proxy2.Invoker
"Invokes" the method.
invoke(Object, Method, Object[]) - Method in class org.apache.commons.proxy2.invoker.NullInvoker
"Invokes" the method.
invoke(Object, Method, Object[]) - Method in class org.apache.commons.proxy2.stub.AnnotationInvoker
 
Invoker - Interface in org.apache.commons.proxy2
An invoker is responsible for handling a method invocation.
InvokerException - Exception in org.apache.commons.proxy2.exception
To be used by an Invoker when they encounter an error.
InvokerException() - Constructor for exception org.apache.commons.proxy2.exception.InvokerException
Create a new InvokerException instance.
InvokerException(String) - Constructor for exception org.apache.commons.proxy2.exception.InvokerException
Create a new InvokerException instance.
InvokerException(Throwable) - Constructor for exception org.apache.commons.proxy2.exception.InvokerException
Create a new InvokerException instance.
InvokerException(String, Throwable) - Constructor for exception org.apache.commons.proxy2.exception.InvokerException
Create a new InvokerException instance.
InvokerInterceptor - Class in org.apache.commons.proxy2.interceptor
Adapts an Invoker to the Interceptor interface.
InvokerInterceptor(Invoker) - Constructor for class org.apache.commons.proxy2.interceptor.InvokerInterceptor
 
invoking(Invoker) - Static method in class org.apache.commons.proxy2.interceptor.InterceptorUtils
Creates an Interceptor that delegates to the specified Invoker.
isA(Class<?>) - Static method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils
 
isEqualsMethod(Method) - Static method in class org.apache.commons.proxy2.ProxyUtils
Learn whether the specified method is/overrides Object.equals(Object).
isHashCode(Method) - Static method in class org.apache.commons.proxy2.ProxyUtils
Learn whether the specified method is/overrides Object.hashCode().
isInstance(Class<R>) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
isNull() - Static method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils
 

L

lt(C) - Static method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils
 
lte(C) - Static method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils
 

M

matches(String) - Method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils.EndsWithMatcher
 
matches(String) - Static method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils
 
matches(String) - Method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils.RegexMatcher
 
matches(T) - Method in interface org.apache.commons.proxy2.interceptor.matcher.ArgumentMatcher
 
matches(Invocation) - Method in class org.apache.commons.proxy2.interceptor.matcher.invocation.DeclaredByMatcher
 
matches(Invocation) - Method in class org.apache.commons.proxy2.interceptor.matcher.invocation.MethodNameMatcher
 
matches(Invocation) - Method in class org.apache.commons.proxy2.interceptor.matcher.invocation.ReturnTypeMatcher
 
matches(Invocation) - Method in interface org.apache.commons.proxy2.interceptor.matcher.InvocationMatcher
 
MethodNameMatcher - Class in org.apache.commons.proxy2.interceptor.matcher.invocation
A MethodNameMatcher simply checks to see that the method name of the invocation matches the target method name given in the constructor.
MethodNameMatcher(String) - Constructor for class org.apache.commons.proxy2.interceptor.matcher.invocation.MethodNameMatcher
 
MethodSignature - Class in org.apache.commons.proxy2.impl
A class for capturing the signature of a method (its name and parameter types).
MethodSignature(Method) - Constructor for class org.apache.commons.proxy2.impl.MethodSignature
Create a new MethodSignature instance.

N

notNull() - Static method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils
 
NullInvoker - Class in org.apache.commons.proxy2.invoker
An Invoker implementation which merely returns null for all method invocations.
NullInvoker() - Constructor for class org.apache.commons.proxy2.invoker.NullInvoker
 
NullProvider<T> - Class in org.apache.commons.proxy2.provider
Always returns null.
NullProvider() - Constructor for class org.apache.commons.proxy2.provider.NullProvider
Create a new NullProvider instance.
nullValue() - Static method in class org.apache.commons.proxy2.provider.ObjectProviderUtils
 
nullValue(Class<T>) - Static method in class org.apache.commons.proxy2.ProxyUtils
Returns the proper "null value" as specified by the Java language.

O

ObjectProvider<T> - Interface in org.apache.commons.proxy2
Provides an object to a delegating proxy.
ObjectProviderException - Exception in org.apache.commons.proxy2.exception
ObjectProvider implementations should throw this exception type to indicate that there was a problem creating/finding the object.
ObjectProviderException() - Constructor for exception org.apache.commons.proxy2.exception.ObjectProviderException
Create a new ObjectProviderException instance.
ObjectProviderException(String) - Constructor for exception org.apache.commons.proxy2.exception.ObjectProviderException
Create a new ObjectProviderException instance.
ObjectProviderException(String, Object...) - Constructor for exception org.apache.commons.proxy2.exception.ObjectProviderException
Create a new ObjectProviderException instance using String.format(String, Object...) for the message.
ObjectProviderException(Throwable) - Constructor for exception org.apache.commons.proxy2.exception.ObjectProviderException
Create a new ObjectProviderException instance.
ObjectProviderException(String, Throwable) - Constructor for exception org.apache.commons.proxy2.exception.ObjectProviderException
Create a new ObjectProviderException instance.
ObjectProviderException(Throwable, String, Object...) - Constructor for exception org.apache.commons.proxy2.exception.ObjectProviderException
Create a new ObjectProviderException instance using String.format(String, Object...) for the message.
ObjectProviderInterceptor - Class in org.apache.commons.proxy2.interceptor
A ObjectProviderInterceptor merely returns the value returned from ObjectProvider.getObject().
ObjectProviderInterceptor(ObjectProvider<?>) - Constructor for class org.apache.commons.proxy2.interceptor.ObjectProviderInterceptor
 
ObjectProviderUtils - Class in org.apache.commons.proxy2.provider
 
of(Class<A>) - Static method in class org.apache.commons.proxy2.stub.AnnotationBuilder
 
of(Class<A>, ObjectProvider<? extends A>) - Static method in class org.apache.commons.proxy2.stub.AnnotationBuilder
 
of(Class<A>, A) - Static method in class org.apache.commons.proxy2.stub.AnnotationBuilder
 
org.apache.commons.proxy2 - package org.apache.commons.proxy2
 
org.apache.commons.proxy2.exception - package org.apache.commons.proxy2.exception
 
org.apache.commons.proxy2.impl - package org.apache.commons.proxy2.impl
 
org.apache.commons.proxy2.interceptor - package org.apache.commons.proxy2.interceptor
 
org.apache.commons.proxy2.interceptor.matcher - package org.apache.commons.proxy2.interceptor.matcher
 
org.apache.commons.proxy2.interceptor.matcher.argument - package org.apache.commons.proxy2.interceptor.matcher.argument
 
org.apache.commons.proxy2.interceptor.matcher.invocation - package org.apache.commons.proxy2.interceptor.matcher.invocation
 
org.apache.commons.proxy2.invoker - package org.apache.commons.proxy2.invoker
 
org.apache.commons.proxy2.invoker.recorder - package org.apache.commons.proxy2.invoker.recorder
 
org.apache.commons.proxy2.provider - package org.apache.commons.proxy2.provider
 
org.apache.commons.proxy2.serialization - package org.apache.commons.proxy2.serialization
The various ProxyFactory implementations create Serializable proxies; however it is not always possible or practical to serialize the complete structure of a given proxy object.
org.apache.commons.proxy2.stub - package org.apache.commons.proxy2.stub
Contains mechanisms for stubbing behavior on ProxyFactory-generated proxy objects.

P

proceed() - Method in interface org.apache.commons.proxy2.Invocation
Called in order to let the invocation proceed.
provider(ObjectProvider<?>) - Static method in class org.apache.commons.proxy2.interceptor.InterceptorUtils
Creates an Interceptor which returns the resulting object from an object provider (for all methods).
ProviderDecorator<T> - Class in org.apache.commons.proxy2.provider
Returns the result of the inner provider.
ProviderDecorator(ObjectProvider<? extends T>) - Constructor for class org.apache.commons.proxy2.provider.ProviderDecorator
Create a new ProviderDecorator instance.
proxy(Class<T>) - Method in class org.apache.commons.proxy2.invoker.recorder.InvocationRecorder
Generate a recording proxy for the specified class.
proxy(Type, Class<T>) - Method in class org.apache.commons.proxy2.invoker.recorder.InvocationRecorder
Generate a recording proxy for the specified class, qualified as genericType.
ProxyClassCache - Class in org.apache.commons.proxy2.impl
A cache for storing implementation classes for proxies based on a specific type of ProxyClassGenerator.
ProxyClassCache(ProxyClassGenerator) - Constructor for class org.apache.commons.proxy2.impl.ProxyClassCache
Create a new ProxyClassCache instance.
ProxyClassGenerator - Interface in org.apache.commons.proxy2.impl
A proxy class generator generates Class instances for a given combination of interfaces in a given classloader.
ProxyFactory - Interface in org.apache.commons.proxy2
ProxyFactory interface.
proxyFactory() - Static method in class org.apache.commons.proxy2.ProxyUtils
Get a ProxyFactory that delegates to discoverable ProxyFactory service providers.
ProxyFactoryException - Exception in org.apache.commons.proxy2.exception
A runtime exception type to be used by proxy factories when a problem occurs.
ProxyFactoryException() - Constructor for exception org.apache.commons.proxy2.exception.ProxyFactoryException
Create a new ProxyFactoryException instance.
ProxyFactoryException(String) - Constructor for exception org.apache.commons.proxy2.exception.ProxyFactoryException
Create a new ProxyFactoryException instance.
ProxyFactoryException(Throwable) - Constructor for exception org.apache.commons.proxy2.exception.ProxyFactoryException
Create a new ProxyFactoryException instance.
ProxyFactoryException(String, Throwable) - Constructor for exception org.apache.commons.proxy2.exception.ProxyFactoryException
Create a new ProxyFactoryException instance.
ProxyUtils - Class in org.apache.commons.proxy2
Provides some helpful proxy utility methods.

R

ReadResolve - Interface in org.apache.commons.proxy2.serialization
Defines a contract around the Object readResolve() method used by Java deserialization.
readResolve() - Method in interface org.apache.commons.proxy2.serialization.ReadResolve
Get the deserialized version of this Serializable.
RecordedInvocation - Class in org.apache.commons.proxy2.invoker
Detached representation of a method invocation.
RecordedInvocation(Method, Object[]) - Constructor for class org.apache.commons.proxy2.invoker.RecordedInvocation
Create a new RecordedInvocation instance.
reset() - Method in class org.apache.commons.proxy2.invoker.recorder.InvocationRecorder
Reset this InvocationRecorder.
ReturnTypeMatcher - Class in org.apache.commons.proxy2.interceptor.matcher.invocation
 
ReturnTypeMatcher(Class<?>) - Constructor for class org.apache.commons.proxy2.interceptor.matcher.invocation.ReturnTypeMatcher
 
ReturnTypeMatcher(Class<?>, boolean) - Constructor for class org.apache.commons.proxy2.interceptor.matcher.invocation.ReturnTypeMatcher
 

S

self() - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
setInner(ObjectProvider<? extends T>) - Method in class org.apache.commons.proxy2.provider.ProviderDecorator
 
singleton(ObjectProvider<T>) - Static method in class org.apache.commons.proxy2.provider.ObjectProviderUtils
 
SingletonProvider<T> - Class in org.apache.commons.proxy2.provider
Wraps another object provider, making sure to only call it once, returning the value returned from the wrapped provider on all subsequent invocations.
SingletonProvider(ObjectProvider<? extends T>) - Constructor for class org.apache.commons.proxy2.provider.SingletonProvider
Create a new SingletonProvider instance.
startsWith(String) - Static method in class org.apache.commons.proxy2.interceptor.matcher.argument.ArgumentMatcherUtils
 
StubBuilder<T> - Class in org.apache.commons.proxy2.stub
 
StubBuilder(ProxyFactory, Class<T>) - Constructor for class org.apache.commons.proxy2.stub.StubBuilder
 
StubBuilder(ProxyFactory, Class<T>, Invoker) - Constructor for class org.apache.commons.proxy2.stub.StubBuilder
 
StubBuilder(ProxyFactory, Class<T>, ObjectProvider<? extends T>) - Constructor for class org.apache.commons.proxy2.stub.StubBuilder
 
StubBuilder(ProxyFactory, Class<T>, T) - Constructor for class org.apache.commons.proxy2.stub.StubBuilder
 
StubInterceptorBuilder - Class in org.apache.commons.proxy2.stub
 
StubInterceptorBuilder(ProxyFactory) - Constructor for class org.apache.commons.proxy2.stub.StubInterceptorBuilder
 
SwitchInterceptor - Class in org.apache.commons.proxy2.interceptor
A SwitchInterceptor maintains a list of InvocationMatcher/Interceptor pairs.
SwitchInterceptor() - Constructor for class org.apache.commons.proxy2.interceptor.SwitchInterceptor
 
SwitchInterceptor.CaseBuilder - Class in org.apache.commons.proxy2.interceptor
 

T

then(Interceptor) - Method in class org.apache.commons.proxy2.interceptor.SwitchInterceptor.CaseBuilder
 
then(Interceptor) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.BaseWhen
 
thenAnswer(ObjectProvider<? extends R>) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.BaseWhen
 
thenBuildArray() - Method in class org.apache.commons.proxy2.stub.BaseAnnotationTrainer.WhenAnnotationArray
 
thenBuildArray() - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenObjectArray
 
thenReturn(boolean...) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenBooleanArray
 
thenReturn(byte...) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenByteArray
 
thenReturn(char...) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenCharArray
 
thenReturn(Class<?>) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenClass
 
thenReturn(double...) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenDoubleArray
 
thenReturn(float...) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenFloatArray
 
thenReturn(int...) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenIntArray
 
thenReturn(long...) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenLongArray
 
thenReturn(R) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenObject
 
thenReturn(R...) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenObjectArray
 
thenReturn(short...) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenShortArray
 
thenStub(Class<R>) - Method in class org.apache.commons.proxy2.stub.BaseAnnotationTrainer.WhenAnnotation
 
thenStub(BaseTrainer<?, R>) - Method in class org.apache.commons.proxy2.stub.BaseAnnotationTrainer.WhenAnnotation
 
thenStub(BaseTrainer<?, R>) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.WhenObject
 
thenThrow(Exception) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.BaseWhen
 
thenThrow(ObjectProvider<? extends Exception>) - Method in class org.apache.commons.proxy2.stub.BaseTrainer.BaseWhen
 
thenThrow(Exception) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
thenThrow(ObjectProvider<? extends Exception>) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
throwing(Exception) - Static method in class org.apache.commons.proxy2.interceptor.InterceptorUtils
Creates an Interceptor which throws a specific exception (for all methods).
throwing(ObjectProvider<? extends Exception>) - Static method in class org.apache.commons.proxy2.interceptor.InterceptorUtils
Creates an Interceptor which throws the exception provided by an object provider (for all methods).
ThrowingInterceptor - Class in org.apache.commons.proxy2.interceptor
 
ThrowingInterceptor(ObjectProvider<? extends Exception>) - Constructor for class org.apache.commons.proxy2.interceptor.ThrowingInterceptor
 
toInterfaces(Class<?>[]) - Static method in class org.apache.commons.proxy2.impl.AbstractSubclassingProxyFactory
Returns the proxyClasses transformed into an array of only the interface classes.
toMethod(Class<?>) - Method in class org.apache.commons.proxy2.impl.MethodSignature
Get the corresponding Method instance from the specified Class.
toString() - Method in class org.apache.commons.proxy2.impl.MethodSignature
toString() - Method in class org.apache.commons.proxy2.invoker.RecordedInvocation
train(BaseTrainer<?, O>) - Method in class org.apache.commons.proxy2.stub.AnnotationBuilder
 
train(T) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
train(BaseTrainer<?, O>) - Method in class org.apache.commons.proxy2.stub.StubBuilder
 
train(Trainer<T>) - Method in class org.apache.commons.proxy2.stub.StubInterceptorBuilder
 
traineeType - Variable in class org.apache.commons.proxy2.stub.BaseTrainer
 
Trainer<T> - Class in org.apache.commons.proxy2.stub
 
Trainer() - Constructor for class org.apache.commons.proxy2.stub.Trainer
 
Trainer(Class<T>) - Constructor for class org.apache.commons.proxy2.stub.Trainer
 
trainingContext() - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 

W

when(InvocationMatcher) - Method in class org.apache.commons.proxy2.interceptor.SwitchInterceptor
 
when(R) - Method in class org.apache.commons.proxy2.stub.BaseAnnotationTrainer
 
when(R[]) - Method in class org.apache.commons.proxy2.stub.BaseAnnotationTrainer
 
when(R) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
when(Class<?>) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
when(byte[]) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
when(boolean[]) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
when(int[]) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
when(short[]) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
when(long[]) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
when(float[]) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
when(double[]) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
when(R[]) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
when(char[]) - Method in class org.apache.commons.proxy2.stub.BaseTrainer
 
withMembers(Map<String, ?>) - Method in class org.apache.commons.proxy2.stub.AnnotationBuilder
 
WriteReplace - Interface in org.apache.commons.proxy2.serialization
Defines a contract around the Object writeReplace() method used by Java deserialization.
writeReplace() - Method in interface org.apache.commons.proxy2.serialization.WriteReplace
Get the serialized version of this object.
A B C D E G H I L M N O P R S T W 

Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.