|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.proxy.Proxy
public class Proxy
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.
Field Summary | |
---|---|
static String |
PROXY_SUFFIX_START
The suffix for the compiled proxy classes. |
Constructor Summary | |
---|---|
Proxy()
|
Method Summary | |
---|---|
static Class |
getProxyClassFor(Class clazz,
boolean useCache,
boolean makeAdvisable)
Compiles and returns a proxy class for the class specified. |
static String |
getUniqueClassNameFromProxy(String proxyClassName)
Returns a unique name for the proxy class. |
static Object |
newInstance(Class clazz)
Creates a new proxy instance based for the class specified and instantiates it using its default no-argument constructor. |
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. |
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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROXY_SUFFIX_START
Constructor Detail |
---|
public Proxy()
Method Detail |
---|
public static Object newInstance(Class clazz)
clazz
- the target class to make a proxy for
public static Object newInstance(Class clazz, Class[] argumentTypes, Object[] argumentValues)
clazz
- the target class to make a proxy forargumentTypes
- the argument types matching the signature of the constructor to use when instantiating the proxyargumentValues
- the argument values to use when instantiating the proxy
public static Object newInstance(Class clazz, boolean useCache, boolean makeAdvisable)
clazz
- the target class to make a proxy foruseCache
- true if a cached instance of the proxy classed should be usedmakeAdvisable
- true if the proxy class should implement the Advisable
interface,
e.g. be prepared for programmatic, runtime, per instance hot deployement of advice
public static Object newInstance(Class clazz, Class[] argumentTypes, Object[] argumentValues, boolean useCache, boolean makeAdvisable)
clazz
- the target class to make a proxy forargumentTypes
- the argument types matching the signature of the constructor to use when instantiating the proxyargumentValues
- the argument values to use when instantiating the proxyuseCache
- true if a cached instance of the proxy classed should be usedmakeAdvisable
- true if the proxy class should implement the Advisable
interface,
e.g. be prepared for programmatic, runtime, per instance hot deployement of advice
public static Class getProxyClassFor(Class clazz, boolean useCache, boolean makeAdvisable)
clazz
- the target class to make a proxy foruseCache
- true if a cached instance of the proxy classed should be usedmakeAdvisable
- true if the proxy class should implement the Advisable
interface,
e.g. be prepared for programmatic, runtime, per instance hot deployement of advice
public static String getUniqueClassNameFromProxy(String proxyClassName)
proxyClassName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |