org.barracudamvc.core.event.helper
Class EventForwardingFactory
java.lang.Object
org.barracudamvc.core.event.DefaultListenerFactory
org.barracudamvc.core.event.helper.EventForwardingFactory
- All Implemented Interfaces:
- ListenerFactory
- public class EventForwardingFactory
- extends DefaultListenerFactory
This class provides a simple factory that will handle
events by simply adding a new event to the queue, in
effect acting as an event forwarder. This type of functionality
is useful when you have request event handlers that simply
forward flow onto response eventhandlers without any intermediary
processing.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.log4j.Logger logger
id
protected String id
fevent
protected BaseEvent fevent
EventForwardingFactory
public EventForwardingFactory(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
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 © 2004 BarracudaMVC.org All Rights Reserved.