|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.util.Proxies
public class Proxies
Utilties for working with Javassist proxies
| Nested Class Summary | |
|---|---|
static class |
Proxies.TypeInfo
|
| Constructor Summary | |
|---|---|
Proxies()
|
|
| Method Summary | ||
|---|---|---|
static javassist.util.proxy.ProxyFactory |
attachMethodHandler(javassist.util.proxy.ProxyFactory proxyFactory,
javassist.util.proxy.MethodHandler methodHandler)
|
|
static
|
attachMethodHandler(T instance,
javassist.util.proxy.MethodHandler methodHandler)
|
|
static
|
createProxy(javassist.util.proxy.MethodHandler methodHandler,
Proxies.TypeInfo typeInfo)
Create a proxy with a handler, registering the proxy for cleanup |
|
static
|
createProxyClass(javassist.util.proxy.MethodHandler methodHandler,
Proxies.TypeInfo typeInfo)
Create a proxy class You will need to manually register the proxy instances for cleanup |
|
static
|
createProxyClass(Proxies.TypeInfo typeInfo)
Create a proxy class You will need to manually register the proxy instances for cleanup |
|
static boolean |
isTypeProxyable(java.lang.reflect.Type type)
Indicates if a class is proxyable |
|
static boolean |
isTypesProxyable(java.lang.Iterable<? extends java.lang.reflect.Type> types)
Indicates if a set of types are all proxyable |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Proxies()
| Method Detail |
|---|
public static <T> T createProxy(javassist.util.proxy.MethodHandler methodHandler,
Proxies.TypeInfo typeInfo)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException
T - methodHandler - typeInfo -
java.lang.IllegalAccessException
java.lang.InstantiationExceptionpublic static <T> java.lang.Class<T> createProxyClass(Proxies.TypeInfo typeInfo)
T - typeInfo -
public static <T> java.lang.Class<T> createProxyClass(javassist.util.proxy.MethodHandler methodHandler,
Proxies.TypeInfo typeInfo)
T - methodHandler - typeInfo -
public static boolean isTypeProxyable(java.lang.reflect.Type type)
type - The class to test
public static boolean isTypesProxyable(java.lang.Iterable<? extends java.lang.reflect.Type> types)
types - The types to test
public static javassist.util.proxy.ProxyFactory attachMethodHandler(javassist.util.proxy.ProxyFactory proxyFactory,
javassist.util.proxy.MethodHandler methodHandler)
public static <T> T attachMethodHandler(T instance,
javassist.util.proxy.MethodHandler methodHandler)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||