Package jadex.commons.beans
Class EventHandler
- java.lang.Object
-
- jadex.commons.beans.EventHandler
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
public class EventHandler extends java.lang.Object implements java.lang.reflect.InvocationHandler
-
-
Constructor Summary
Constructors Constructor Description EventHandler(java.lang.Object target, java.lang.String action, java.lang.String eventPropertyName, java.lang.String listenerMethodName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> T
create(java.lang.Class<T> listenerInterface, java.lang.Object target, java.lang.String action)
static <T> T
create(java.lang.Class<T> listenerInterface, java.lang.Object target, java.lang.String action, java.lang.String eventPropertyName)
static <T> T
create(java.lang.Class<T> listenerInterface, java.lang.Object target, java.lang.String action, java.lang.String eventPropertyName, java.lang.String listenerMethodName)
java.lang.String
getAction()
java.lang.String
getEventPropertyName()
java.lang.String
getListenerMethodName()
java.lang.Object
getTarget()
java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] arguments)
-
-
-
Method Detail
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] arguments)
- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
-
getListenerMethodName
public java.lang.String getListenerMethodName()
-
getEventPropertyName
public java.lang.String getEventPropertyName()
-
getAction
public java.lang.String getAction()
-
getTarget
public java.lang.Object getTarget()
-
create
public static <T> T create(java.lang.Class<T> listenerInterface, java.lang.Object target, java.lang.String action, java.lang.String eventPropertyName, java.lang.String listenerMethodName)
-
create
public static <T> T create(java.lang.Class<T> listenerInterface, java.lang.Object target, java.lang.String action, java.lang.String eventPropertyName)
-
create
public static <T> T create(java.lang.Class<T> listenerInterface, java.lang.Object target, java.lang.String action)
-
-