ProxyFactory instances.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final MethodFilter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BasicProxyFactory | buildBasicProxyFactory(Class<T>
The abstract super class (or null if none). superClass, Class<T>[] Interfaces to be proxied (or null if none). interfaces)Implements org. |
| public ProxyFactory | Returns: a new Javassist-based proxy factory.Implements org. |
| FINALIZE_FILTER | back to summary |
|---|---|
| private static final MethodFilter FINALIZE_FILTER | |
| ProxyFactoryFactoryImpl | back to summary |
|---|---|
| public ProxyFactoryFactoryImpl() | |
| buildBasicProxyFactory | back to summary |
|---|---|
| public BasicProxyFactory buildBasicProxyFactory(Class<T> superClass, Class<T>[] interfaces) Implements org. Doc from org. Build a proxy factory for basic proxy concerns. The return should be capable of properly handling newInstance() calls. Should build basic proxies essentially equivalent to JDK proxies in terms of capabilities, but should be able to deal with abstract super classes in addition to proxy interfaces. Must pass in either superClass or interfaces (or both).
| |
| buildProxyFactory | back to summary |
|---|---|
| public ProxyFactory buildProxyFactory() Implements org. Builds a Javassist-based proxy factory.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean |
| proxyClass | back to summary |
|---|---|
| private final Class<T> proxyClass | |
| BasicProxyFactoryImpl | back to summary |
|---|---|
| public BasicProxyFactoryImpl(Class<T> superClass, Class<T>[] interfaces) | |
| getProxy | back to summary |
|---|---|
| public Object getProxy() Implements org. Doc from org. Get a proxy reference.
| |
| isInstance | back to summary |
|---|---|
| public boolean isInstance(Object object) | |
| Modifier and Type | Field and Description |
|---|---|
| private HashMap | |
| private final String | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | invoke(Object
the proxy instance. object, Method the overridden method declared in the super
class or interface. method, Method the forwarder method for invoking the overridden
method. It is null if the overridden mehtod is
abstract or declared in the interface. method1, Object[] an array of objects containing the values of
the arguments passed in the method invocation
on the proxy instance. If a parameter type is
a primitive type, the type of the array element
is a wrapper class. args)Implements javassist. |
| data | back to summary |
|---|---|
| private HashMap<K, V> data | |
| proxiedClassName | back to summary |
|---|---|
| private final String proxiedClassName | |
| proxiedObject | back to summary |
|---|---|
| private final Object proxiedObject | |
| PassThroughHandler | back to summary |
|---|---|
| public PassThroughHandler(Object proxiedObject, String proxiedClassName) | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object object, Method method, Method method1, Object[] args) throws Exception Implements javassist. Doc from javassist. Is called when a method is invoked on a proxy instance associated with this handler. This method must process that method invocation.
| |