org.apache.struts.faces.application
Class ActionListenerImpl

java.lang.Object
  extended byorg.apache.struts.faces.application.ActionListenerImpl
All Implemented Interfaces:
javax.faces.event.ActionListener, java.util.EventListener, javax.faces.event.FacesListener

public final class ActionListenerImpl
extends java.lang.Object
implements javax.faces.event.ActionListener

Concrete implementation of ActionListener that replaces the default provided implementation. It converts application-level events into execution of the corresponding Struts request processing lifecycle.

Version:
$Rev: 54934 $ $Date: 2004-10-16 18:07:50 +0100 (Sat, 16 Oct 2004) $

Field Summary
private static org.apache.commons.logging.Log log
          The logger for this instance.
private  javax.faces.event.ActionListener original
          The previously configured ActionListener instance.
 
Constructor Summary
ActionListenerImpl(javax.faces.event.ActionListener original)
          Construct a new default ActionListener instance, passing it the previously configured one.
 
Method Summary
protected  org.apache.struts.action.RequestProcessor getRequestProcessor(org.apache.struts.config.ModuleConfig config, javax.servlet.ServletContext context)
          Look up and return the RequestProcessor responsible for the specified module, creating a new one if necessary.
 void processAction(javax.faces.event.ActionEvent event)
          Process the specified ActionEvent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

The logger for this instance.


original

private javax.faces.event.ActionListener original

The previously configured ActionListener instance.

Constructor Detail

ActionListenerImpl

public ActionListenerImpl(javax.faces.event.ActionListener original)

Construct a new default ActionListener instance, passing it the previously configured one.

Parameters:
original - Original default ActionListener
Throws:
java.lang.NullPointerException - if original is null
Method Detail

processAction

public void processAction(javax.faces.event.ActionEvent event)
                   throws javax.faces.event.AbortProcessingException

Process the specified ActionEvent.

Specified by:
processAction in interface javax.faces.event.ActionListener
Parameters:
event - The ActionEvent to be processed
Throws:
javax.faces.event.AbortProcessingException - to signal that no further event processing should be performed

getRequestProcessor

protected org.apache.struts.action.RequestProcessor getRequestProcessor(org.apache.struts.config.ModuleConfig config,
                                                                        javax.servlet.ServletContext context)

Look up and return the RequestProcessor responsible for the specified module, creating a new one if necessary. This method is based on the corresponding code in ActionServlet, which cannot be used directly because it is a protected method.

Parameters:
config - The module configuration for which to acquire and return a RequestProcessor
context - The ServletContext instance for this web application
Throws:
java.lang.IllegalStateException - if we cannot instantiate a RequestProcessor instance


Copyright ? 2003-2004 - The Apache Software Foundation