org.enhydra.barracuda.core.event.helper
Class EventRedirectFactory

java.lang.Object
  extended byorg.enhydra.barracuda.core.event.DefaultListenerFactory
      extended byorg.enhydra.barracuda.core.event.helper.EventRedirectFactory
All Implemented Interfaces:
ListenerFactory

public class EventRedirectFactory
extends DefaultListenerFactory

This class provides a simple factory that will handle events by simply throwing a client side redirect, in effect acting as an event forwarder.


Field Summary
protected  BaseEvent fevent
           
protected  String id
           
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
EventRedirectFactory(BaseEvent ifevent)
          Public constructor.
 
Method Summary
 BaseEventListener getInstance()
          Get an instance of the underlying BaseEventListener
 String getListenerID()
          Get the Listener ID associated with this class of listener.
 
Methods inherited from class org.enhydra.barracuda.core.event.DefaultListenerFactory
getID, notifyAlways
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

id

protected String id

fevent

protected BaseEvent fevent
Constructor Detail

EventRedirectFactory

public EventRedirectFactory(BaseEvent ifevent)
Public constructor. Note that when actually forwarding the event, a new instance will be generated via reflection.

Parameters:
ifevent - the event to be generated
Method Detail

getInstance

public BaseEventListener getInstance()
Get an instance of the underlying BaseEventListener

Specified by:
getInstance in interface ListenerFactory
Specified by:
getInstance in class DefaultListenerFactory
Returns:
get an instance of the BaseEventListener

getListenerID

public String getListenerID()
Get the Listener ID associated with this class of listener. This will generally either be the class name of the listener that the factory creates

Specified by:
getListenerID in interface ListenerFactory
Specified by:
getListenerID in class DefaultListenerFactory
Returns:
the listener ID that describes this factory


Copyright © 2003 BarracudaMVC.org All Rights Reserved.