org.ofbiz.webapp.event
Class EventFactory

java.lang.Object
  extended by org.ofbiz.webapp.event.EventFactory

public class EventFactory
extends java.lang.Object

EventFactory - Event Handler Factory


Field Summary
protected  ServletContext context
           
protected  java.util.Map<java.lang.String,EventHandler> handlers
           
static java.lang.String module
           
protected  RequestHandler requestHandler
           
 
Constructor Summary
EventFactory(RequestHandler requestHandler)
           
 
Method Summary
 void clear()
           
 EventHandler getEventHandler(java.lang.String type)
           
static java.lang.String runRequestEvent(HttpServletRequest request, HttpServletResponse response, java.lang.String requestUri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

requestHandler

protected RequestHandler requestHandler

context

protected ServletContext context

handlers

protected java.util.Map<java.lang.String,EventHandler> handlers
Constructor Detail

EventFactory

public EventFactory(RequestHandler requestHandler)
Method Detail

getEventHandler

public EventHandler getEventHandler(java.lang.String type)
                             throws EventHandlerException
Throws:
EventHandlerException

clear

public void clear()

runRequestEvent

public static java.lang.String runRequestEvent(HttpServletRequest request,
                                               HttpServletResponse response,
                                               java.lang.String requestUri)
                                        throws EventHandlerException
Throws:
EventHandlerException