Package com.adobe.xfa
Class LogMessenger
java.lang.Object
com.adobe.xfa.LogMessenger
A class to represent a log messenger.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a log messenger.LogMessenger
(LogMessageHandler handler, String sAppContext) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHandler
(LogMessageHandler handler, String sAppContext) Add a message handler.void
flush()
Flush target.int
As the messenger sends messages we keep track of the highest severity message sent.void
void
sendMessage
(int nId, String sText, int eSeverity) Send message to target.void
sendMessage
(LogMessage message) Send message to target.void
updateMessaging
(Model model) Check through the messaging elements in the configuration model and add them to a cache.
-
Constructor Details
-
LogMessenger
public LogMessenger()Instantiates a log messenger. -
LogMessenger
Constructor- Parameters:
handler
- pointer to a message handlersAppContext
- a string representing the application context/name
-
-
Method Details
-
addHandler
Add a message handler.- Parameters:
handler
- a message handlersAppContext
- a string representing the application context/name
-
getSeverity
public int getSeverity()As the messenger sends messages we keep track of the highest severity message sent.- Returns:
- a int enum, representing the highest severity message sent by this messenger.
-
removeStoredMessages
public void removeStoredMessages() -
flush
public void flush()Flush target. -
sendMessage
Send message to target.- Parameters:
nId
- the message IdsText
- the message texteSeverity
- the message severity
-
sendMessage
Send message to target.- Parameters:
message
- the message
-
storedMsgArray
-
updateMessaging
Check through the messaging elements in the configuration model and add them to a cache. When ever messages are sent, we will compare with the cache to see if the message severity needs to be modified.- Parameters:
model
- the configuration model containing the messaging information
-