| java.lang.Object org.codehaus.aspectwerkz.proxy.Proxy
Proxy | public class Proxy (Code) | | Compiles proxy classes from target classes and weaves in all matching aspects deployed in the class loader
and defined by the META-INF/aop.xml file.
author: Jonas BonŽr |
Method Summary | |
public static Class | getProxyClassFor(Class clazz, boolean useCache, boolean makeAdvisable) Compiles and returns a proxy class for the class specified.
Parameters: clazz - the target class to make a proxy for Parameters: useCache - true if a cached instance of the proxy classed should be used Parameters: makeAdvisable - true if the proxy class should implement the Advisable interface,e.g. | public static String | getUniqueClassNameFromProxy(String proxyClassName) Returns a unique name for the proxy class. | public static Object | newInstance(Class clazz) Creates a new proxy instance based for the class specified and instantiates it using its default no-argument
constructor. | public static Object | newInstance(Class clazz, Class[] argumentTypes, Object[] argumentValues) Creates a new proxy instance for the class specified and instantiates it using the constructor matching
the argument type array specified. | public static Object | newInstance(Class clazz, boolean useCache, boolean makeAdvisable) Creates a new proxy instance based for the class specified and instantiates it using its default no-argument
constructor.
Parameters: clazz - the target class to make a proxy for Parameters: useCache - true if a cached instance of the proxy classed should be used Parameters: makeAdvisable - true if the proxy class should implement the Advisable interface,e.g. | public static Object | newInstance(Class clazz, Class[] argumentTypes, Object[] argumentValues, boolean useCache, boolean makeAdvisable) Creates a new proxy instance for the class specified and instantiates it using the constructor matching
the argument type array specified.
Parameters: clazz - the target class to make a proxy for Parameters: argumentTypes - the argument types matching the signature of the constructor to use when instantiating the proxy Parameters: argumentValues - the argument values to use when instantiating the proxy Parameters: useCache - true if a cached instance of the proxy classed should be used Parameters: makeAdvisable - true if the proxy class should implement the Advisable interface,e.g. |
PROXY_SUFFIX_START | final public static String PROXY_SUFFIX_START(Code) | | The suffix for the compiled proxy classes.
|
getProxyClassFor | public static Class getProxyClassFor(Class clazz, boolean useCache, boolean makeAdvisable)(Code) | | Compiles and returns a proxy class for the class specified.
Parameters: clazz - the target class to make a proxy for Parameters: useCache - true if a cached instance of the proxy classed should be used Parameters: makeAdvisable - true if the proxy class should implement the Advisable interface,e.g. be prepared for programmatic, runtime, per instance hot deployement of advice the proxy class |
getUniqueClassNameFromProxy | public static String getUniqueClassNameFromProxy(String proxyClassName)(Code) | | Returns a unique name for the proxy class.
Parameters: proxyClassName - the class name beeing proxied |
newInstance | public static Object newInstance(Class clazz)(Code) | | Creates a new proxy instance based for the class specified and instantiates it using its default no-argument
constructor.
The proxy will be cached and non-advisable.
Parameters: clazz - the target class to make a proxy for the proxy instance |
newInstance | public static Object newInstance(Class clazz, Class[] argumentTypes, Object[] argumentValues)(Code) | | Creates a new proxy instance for the class specified and instantiates it using the constructor matching
the argument type array specified.
The proxy will be cached and non-advisable.
Parameters: clazz - the target class to make a proxy for Parameters: argumentTypes - the argument types matching the signature of the constructor to use when instantiating the proxy Parameters: argumentValues - the argument values to use when instantiating the proxy the proxy instance |
newInstance | public static Object newInstance(Class clazz, boolean useCache, boolean makeAdvisable)(Code) | | Creates a new proxy instance based for the class specified and instantiates it using its default no-argument
constructor.
Parameters: clazz - the target class to make a proxy for Parameters: useCache - true if a cached instance of the proxy classed should be used Parameters: makeAdvisable - true if the proxy class should implement the Advisable interface,e.g. be prepared for programmatic, runtime, per instance hot deployement of advice the proxy instance |
newInstance | public static Object newInstance(Class clazz, Class[] argumentTypes, Object[] argumentValues, boolean useCache, boolean makeAdvisable)(Code) | | Creates a new proxy instance for the class specified and instantiates it using the constructor matching
the argument type array specified.
Parameters: clazz - the target class to make a proxy for Parameters: argumentTypes - the argument types matching the signature of the constructor to use when instantiating the proxy Parameters: argumentValues - the argument values to use when instantiating the proxy Parameters: useCache - true if a cached instance of the proxy classed should be used Parameters: makeAdvisable - true if the proxy class should implement the Advisable interface,e.g. be prepared for programmatic, runtime, per instance hot deployement of advice the proxy instance |
|
|