|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.el.MethodBinding
org.apache.myfaces.orchestra.conversation.jsf.lib._EndConversationMethodBindingFacade
public class _EndConversationMethodBindingFacade
A facade for the original method binding to deal with end conversation conditions.
This class implements MethodBinding, ie represents an EL expression string that specifies a method to call. It is expected to be used when invoking action methods when the current conversation should be closed upon certain results of the action.
This facade also enhances error-handling for action methods. If the invoked method throws an exception of any kind, and an errorOutcome value has been specified then the errorOutcome is returned instead of allowing the exception to propagate. The exception that occurred is reported to the ConversationMessager object associated with the conversation, so it can choose whether and how to present the error to the user.
Constructor Summary | |
---|---|
_EndConversationMethodBindingFacade()
|
|
_EndConversationMethodBindingFacade(java.lang.String conversation,
java.util.Collection onOutcomes,
javax.faces.el.MethodBinding original,
java.lang.String errorOutcome)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getConversationName()
|
java.lang.String |
getExpressionString()
|
java.lang.Class |
getType(javax.faces.context.FacesContext context)
|
java.lang.Object |
invoke(javax.faces.context.FacesContext context,
java.lang.Object[] values)
|
boolean |
isTransient()
Required by StateHolder interface. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object states)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setTransient(boolean newTransientValue)
Required by StateHolder interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public _EndConversationMethodBindingFacade()
public _EndConversationMethodBindingFacade(java.lang.String conversation, java.util.Collection onOutcomes, javax.faces.el.MethodBinding original, java.lang.String errorOutcome)
conversation
- is the name of the conversation to conditionally be closed.onOutcomes
- is a collection of navigation strings that may be returned from the
invoked method. One of the following rules is then used to determine whether the conversation
is ended or not:
original
- is the EL expression to be invoked.errorOutcome
- is a JSF navigation string to be returned if the action method
throws an exception of any kind. This navigation value is checked against the onOutcomes
values just as if the action method had actually returned this value. When not specified,
then on exception the current conversation is not ended.Method Detail |
---|
public java.lang.String getConversationName()
public java.lang.String getExpressionString()
getExpressionString
in class javax.faces.el.MethodBinding
public java.lang.Class getType(javax.faces.context.FacesContext context) throws javax.faces.el.MethodNotFoundException
getType
in class javax.faces.el.MethodBinding
javax.faces.el.MethodNotFoundException
public java.lang.Object invoke(javax.faces.context.FacesContext context, java.lang.Object[] values) throws javax.faces.el.EvaluationException, javax.faces.el.MethodNotFoundException
invoke
in class javax.faces.el.MethodBinding
javax.faces.el.EvaluationException
javax.faces.el.MethodNotFoundException
public void setTransient(boolean newTransientValue)
setTransient
in interface javax.faces.component.StateHolder
public boolean isTransient()
isTransient
in interface javax.faces.component.StateHolder
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object states)
restoreState
in interface javax.faces.component.StateHolder
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |