JSF-Spring

de.mindmatters.faces.application
Class SimpleActionEventContext

java.lang.Object
  extended by de.mindmatters.faces.application.SimpleActionEventContext
All Implemented Interfaces:
ActionEventContext

public final class SimpleActionEventContext
extends java.lang.Object
implements ActionEventContext

Simple implementation of the ActionEventContext interface, always returning a specified ActionEvent.

Author:
Andreas Kuhrwahl

Constructor Summary
SimpleActionEventContext(ActionEvent actionEvent)
          Creates a simple context with the given actionEvent.
 
Method Summary
 ActionEvent getActionEvent()
          Return the current ActionEvent, which can be fixed or determined dynamically, depending on the implementation strategy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleActionEventContext

public SimpleActionEventContext(ActionEvent actionEvent)
Creates a simple context with the given actionEvent.

Parameters:
actionEvent - the specified ActionEvent
Throws:
java.lang.IllegalArgumentException - if actionEvent is null
Method Detail

getActionEvent

public ActionEvent getActionEvent()
Return the current ActionEvent, which can be fixed or determined dynamically, depending on the implementation strategy.

Specified by:
getActionEvent in interface ActionEventContext
Returns:
the determined ActionEvent

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG