Serializable, FlowMessageFactorypublic class DefaultFlowMessageFactory extends Object implements FlowMessageFactory, Serializable
| Constructor | 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 | 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(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.
|
ExitMessage |
newExitMessage(EntryMessage message) |
Creates a new exit message based on no return value and an existing entry message.
|
public DefaultFlowMessageFactory()
"Enter" and "Exit" as the default flow strings.public String getEntryText()
public String getExitText()
public EntryMessage newEntryMessage(Message message)
FlowMessageFactorynewEntryMessage in interface FlowMessageFactorymessage - the original messagepublic ExitMessage newExitMessage(EntryMessage message)
FlowMessageFactorynewExitMessage in interface FlowMessageFactorymessage - the original entry messagepublic ExitMessage newExitMessage(Object result, EntryMessage message)
FlowMessageFactorynewExitMessage in interface FlowMessageFactoryresult - the return value.message - the original entry messagepublic ExitMessage newExitMessage(Object result, Message message)
FlowMessageFactorynewExitMessage in interface FlowMessageFactoryresult - the return value.message - the original messageCopyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.