T - The type of the component being wrapped.public class ProxyGenerator<T>
extends java.lang.Object
WrapperFactory.
If the wrapped component is an instance of an ComponentAdapter the
underlying component interface will be used instead.
| Constructor and Description |
|---|
ProxyGenerator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
generate(T wrapped,
WrapperFactory<T> wrapperFactory,
java.lang.ClassLoader classLoader)
Generate the proxy.
|
static java.lang.Class<?>[] |
interfacesFor(java.lang.Object object)
Find all the interfaces an object implements.
|
public java.lang.Object generate(T wrapped, WrapperFactory<T> wrapperFactory, java.lang.ClassLoader classLoader)
wrapped - The component being wrapped.wrapperFactory - classLoader - public static java.lang.Class<?>[] interfacesFor(java.lang.Object object)
object - The object.