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 DefaultFlowMessageFactory(String entryText, String exitText)
entryText
- the text to use for trace entry, like "Enter"
.exitText
- the text to use for trace exit, like "Exit"
.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 © 1999-1969 The Apache Software Foundation. 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.