public class DefaultFlowMessageFactory extends Object implements FlowMessageFactory, Serializable
Constructor and Description |
---|
DefaultFlowMessageFactory()
Constructs a message factory with
"Enter" and "Exit" as the default flow strings. |
DefaultFlowMessageFactory(String entryText,
String exitText)
Constructs a message factory with the given entry and exit strings.
|
Modifier and Type | Method and Description |
---|---|
String |
getEntryText()
Gets the entry text.
|
String |
getExitText()
Gets the exit text.
|
EntryMessage |
newEntryMessage(Message message)
Creates a new entry message based on an existing message.
|
ExitMessage |
newExitMessage(EntryMessage message)
Creates a new exit message based on no return value and an existing entry message.
|
ExitMessage |
newExitMessage(Object result,
EntryMessage message)
Creates a new exit message based on a return value and an existing entry message.
|
ExitMessage |
newExitMessage(Object result,
Message message)
Creates a new exit message based on a return value and an existing message.
|
public DefaultFlowMessageFactory()
"Enter"
and "Exit"
as the default flow strings.public String getEntryText()
public String getExitText()
public EntryMessage newEntryMessage(Message message)
FlowMessageFactory
newEntryMessage
in interface FlowMessageFactory
message
- the original messagepublic ExitMessage newExitMessage(EntryMessage message)
FlowMessageFactory
newExitMessage
in interface FlowMessageFactory
message
- the original entry messagepublic ExitMessage newExitMessage(Object result, EntryMessage message)
FlowMessageFactory
newExitMessage
in interface FlowMessageFactory
result
- the return value.message
- the original entry messagepublic ExitMessage newExitMessage(Object result, Message message)
FlowMessageFactory
newExitMessage
in interface FlowMessageFactory
result
- the return value.message
- the original messageCopyright © 2021 JBoss by Red Hat. All rights reserved.