|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogic.wsee.BaseMessages
public abstract class BaseMessages
Abstract base class for all Messages classes used to log user messages (those that need to be localized into the customer's target language. This class will try to obtain a Logger instance using the LoggingService using a logger name that matches the subclass name, and will load a ResourceBundle also matching the subclass name. It is recommended to use a property resource bundle to hold your message format strings. You do this by putting a .properties file in your 'resources' area under the same package hierarchy as the Messages subclass, and with the name <Subclass name>.properties If desired, you may instead use a ListResourceBundle subclass directly in the same directory as the source for your Messages subclass.
Constructor Summary | |
---|---|
protected |
BaseMessages()
|
Method Summary | |
---|---|
protected static String |
getCurrentMethod()
|
protected static String |
getCurrentMethod(int levelsToSkip)
|
protected String |
getKeyFromMethod()
|
Logger |
getLogger()
|
protected String |
getString(ResourceBundle resBdl,
String resId,
Object... params)
|
protected String |
getString(String msgId,
Object... params)
message string from bundle |
boolean |
isLoggable(Level level)
Return whether the concrete logger is loggable at this level |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseMessages()
Method Detail |
---|
public Logger getLogger()
public final boolean isLoggable(Level level)
level
-
protected String getString(String msgId, Object... params)
msgId
- : the message bundle key Idparams
- : optional parameters
protected String getString(ResourceBundle resBdl, String resId, Object... params)
protected String getKeyFromMethod()
protected static String getCurrentMethod()
protected static String getCurrentMethod(int levelsToSkip)
|
Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |