ProxyFactory
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| public static MethodHandler | default_interceptor
A method handler that only executes a method. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static void | |
| public static void | find2Methods(Object self, String superMethod, String thisMethod, int index, String desc, Method[] methods)
Deprecated
replaced by
find2Methods(Class, String, String, int, String, Method[])
Finds two methods specified by the parameters and stores them into the given array. |
| public static Method | findMethod(Object self, String name, String desc)
Deprecated
replaced by
findMethod(Class, String, String)
Finds a method with the given name and descriptor. |
| public static Method | findMethod(Class<?> clazz, String name, String desc)
Finds a method with the given name and descriptor. |
| private static Method | |
| public static Method | findSuperClassMethod(Class<?> clazz, String name, String desc)
Finds a method that has the given name and descriptor and is declared in the super class. |
| public static Method | findSuperMethod(Object self, String name, String desc)
Finds a method that has the given name and descriptor and is declared in the super class. |
| private static Method | |
| private static void | |
| public static String | |
| public static String | makeDescriptor(Class<?>[]
parameter types. params, Class<?> return type. retType)Makes a descriptor for a given method. |
| public static String | makeDescriptor(String
the descriptor of parameter types. params, Class<?> return type. retType)Makes a descriptor for a given method. |
| public static SerializedProxy | makeSerializedProxy(Object proxy)
Converts a proxy object to an object that is writable to an object stream. |
| private static Method |
| default_interceptor | back to summary |
|---|---|
| public static MethodHandler default_interceptor A method handler that only executes a method. | |
| RuntimeSupport | back to summary |
|---|---|
| public RuntimeSupport() | |
| error | back to summary |
|---|---|
| private static void error(Class<?> clazz, String name, String desc) | |
| find2Methods | back to summary |
|---|---|
| public static void find2Methods(Class<?> clazz, String superMethod, String thisMethod, int index, String desc, Method[] methods) Finds two methods specified by the parameters and stores them into the given array.
| |
| find2Methods | back to summary |
|---|---|
| public static void find2Methods(Object self, String superMethod, String thisMethod, int index, String desc, Method[] methods)
Deprecated replaced by Finds two methods specified by the parameters and stores them into the given array. Added back for JBoss Seam. See JASSIST-206.
| |
| findMethod | back to summary |
|---|---|
| public static Method findMethod(Object self, String name, String desc)
Deprecated replaced by Finds a method with the given name and descriptor. It searches only the class of self. Added back for JBoss Seam. See JASSIST-206.
| |
| findMethod | back to summary |
|---|---|
| public static Method findMethod(Class<?> clazz, String name, String desc) Finds a method with the given name and descriptor. It searches only the class of self.
| |
| findMethod2 | back to summary |
|---|---|
| private static Method findMethod2(Class<?> clazz, String name, String desc) | |
| findSuperClassMethod | back to summary |
|---|---|
| public static Method findSuperClassMethod(Class<?> clazz, String name, String desc) Finds a method that has the given name and descriptor and is declared in the super class.
| |
| findSuperMethod | back to summary |
|---|---|
| public static Method findSuperMethod(Object self, String name, String desc) Finds a method that has the given name and descriptor and is declared in the super class.
| |
| findSuperMethod2 | back to summary |
|---|---|
| private static Method findSuperMethod2(Class<?> clazz, String name, String desc) | |
| makeDesc | back to summary |
|---|---|
| private static void makeDesc(StringBuilder sbuf, Class<?> type) | |
| makeDescriptor | back to summary |
|---|---|
| public static String makeDescriptor(Method m) Makes a descriptor for a given method. | |
| makeDescriptor | back to summary |
|---|---|
| public static String makeDescriptor(Class<?>[] params, Class<?> retType) Makes a descriptor for a given method. | |
| makeDescriptor | back to summary |
|---|---|
| public static String makeDescriptor(String params, Class<?> retType) Makes a descriptor for a given method. | |
| makeSerializedProxy | back to summary |
|---|---|
| public static SerializedProxy makeSerializedProxy(Object proxy) throws InvalidClassException Converts a proxy object to an object that is writable to an
object stream. This method is called by
| |
| searchInterfaces | back to summary |
|---|---|
| private static Method searchInterfaces(Class<?> clazz, String name, String desc) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
default serialVersionUID |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | invoke(Object
the proxy instance. self, Method the overridden method declared in the super
class or interface. m, Method the forwarder method for invoking the overridden
method. It is null if the overridden method is
abstract or declared in the interface. proceed, 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. Is called when a method is invoked on a proxy instance associated with this handler. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID default serialVersionUID | |
| DefaultMethodHandler | back to summary |
|---|---|
| pack-priv DefaultMethodHandler() | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object self, Method m, Method proceed, 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.
| |