Package jadex.bridge
Class ProxyFactory
- java.lang.Object
- 
- jadex.bridge.ProxyFactory
 
- 
 public class ProxyFactory extends java.lang.ObjectCreate a proxy with standard Java or per Jadex ASM.
- 
- 
Field SummaryFields Modifier and Type Field Description static booleanuseasm
 - 
Constructor SummaryConstructors Constructor Description ProxyFactory()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.reflect.InvocationHandlergetInvocationHandler(java.lang.Object proxy)Get the invocation handler of a proxy.static booleanisASMProxyClass(java.lang.Class<?> cl)Test if it is a ASM proxy class.static booleanisProxyClass(java.lang.Class<?> cl)Returns true if and only if the specified class was dynamically generated to be a proxy class using thegetProxyClassmethod or thenewProxyInstancemethod.static java.lang.ObjectnewProxyInstance(java.lang.ClassLoader loader, java.lang.Class<?>[] interfaces, java.lang.reflect.InvocationHandler h)Returns an instance of a proxy class for the specified interfaces that dispatches method invocations to the specified invocation handler.
 
- 
- 
- 
Method Detail- 
newProxyInstancepublic static java.lang.Object newProxyInstance(java.lang.ClassLoader loader, java.lang.Class<?>[] interfaces, java.lang.reflect.InvocationHandler h)Returns an instance of a proxy class for the specified interfaces that dispatches method invocations to the specified invocation handler.
 - 
getInvocationHandlerpublic static java.lang.reflect.InvocationHandler getInvocationHandler(java.lang.Object proxy) throws java.lang.IllegalArgumentExceptionGet the invocation handler of a proxy.- Parameters:
- proxy-
- Returns:
- The handler
- Throws:
- java.lang.IllegalArgumentException
 
 - 
isProxyClasspublic static boolean isProxyClass(java.lang.Class<?> cl) Returns true if and only if the specified class was dynamically generated to be a proxy class using thegetProxyClassmethod or thenewProxyInstancemethod.Proxy. - Parameters:
- cl- the class to test
- Returns:
- trueif the class is a proxy class and- falseotherwise
- Throws:
- java.lang.NullPointerException- if- clis- null
 
 - 
isASMProxyClasspublic static boolean isASMProxyClass(java.lang.Class<?> cl) Test if it is a ASM proxy class.- Parameters:
- cl- The class.
- Returns:
- True, if is asm proxy class.
 
 
- 
 
-