Top Constructors Methods
org.codehaus.commons.compiler.util.reflect

public final Class Proxies

extends Object
Class Inheritance
Imports
java.lang.reflect.InvocationHandler, .Method, .Proxy, java.util.Arrays, org.codehaus.commons.nullanalysis.NotNullByDefault

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <
The interface that declares the method
T
>
T

Returns:

An object that implements the interface that declares the methods, and delegates all invocations of the methods to the delegate and the delegateMethods
newInstance
(final Object delegate, final Method...
Pairs of methods declared in T and methods declared in delegate.getClass()
methodsAndDelegateMethod
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Proxiesback to summary
private Proxies()

Method Detail

newInstanceback to summary
public static <T> T newInstance(final Object delegate, final Method... methodsAndDelegateMethod)
Parameters
<T>
The interface that declares the method
methodsAndDelegateMethod:Method[]

Pairs of methods declared in T and methods declared in delegate.getClass()

Returns:T

An object that implements the interface that declares the methods, and delegates all invocations of the methods to the delegate and the delegateMethods