java.lang.Object
org.glassfish.main.jul.record.MessageResolver
This class is used to resolve
LogRecord's message:
- to internationalize the message if the resource bundle is set
- to construct final message using record's parameters
- to return
GlassFishLogRecordproviding additional items usable in logs
- Author:
- David Matejcek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionResolves the original record toGlassFishLogRecordso it contains the final log message.
-
Constructor Details
-
MessageResolver
public MessageResolver()Searches forLogManagervalid in current context. Does not have any other internal state.
-
-
Method Details
-
resolve
Resolves the original record toGlassFishLogRecordso it contains the final log message. Then sets record's resource bundle and parameters to null to avoid repeating same resolution again.
It also detects that the record is already resolved, then returns it without any change.- Parameters:
record-- Returns:
GlassFishLogRecordwith final log message.
-