com.googlecode.openbeans
Class EventHandler

java.lang.Object
  extended by com.googlecode.openbeans.EventHandler
All Implemented Interfaces:
InvocationHandler

public class EventHandler
extends Object
implements InvocationHandler


Constructor Summary
EventHandler(Object target, String action, String eventPropertyName, String listenerMethodName)
           
 
Method Summary
static
<T> T
create(Class<T> listenerInterface, Object target, String action)
           
static
<T> T
create(Class<T> listenerInterface, Object target, String action, String eventPropertyName)
           
static
<T> T
create(Class<T> listenerInterface, Object target, String action, String eventPropertyName, String listenerMethodName)
           
 String getAction()
           
 String getEventPropertyName()
           
 String getListenerMethodName()
           
 Object getTarget()
           
 Object invoke(Object proxy, Method method, Object[] arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventHandler

public EventHandler(Object target,
                    String action,
                    String eventPropertyName,
                    String listenerMethodName)
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] arguments)
Specified by:
invoke in interface InvocationHandler

getListenerMethodName

public String getListenerMethodName()

getEventPropertyName

public String getEventPropertyName()

getAction

public String getAction()

getTarget

public Object getTarget()

create

public static <T> T create(Class<T> listenerInterface,
                           Object target,
                           String action,
                           String eventPropertyName,
                           String listenerMethodName)

create

public static <T> T create(Class<T> listenerInterface,
                           Object target,
                           String action,
                           String eventPropertyName)

create

public static <T> T create(Class<T> listenerInterface,
                           Object target,
                           String action)


Copyright © 2013. All Rights Reserved.