Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01

weblogic.wsee
Class BaseMessages

java.lang.Object
  extended by weblogic.wsee.BaseMessages
Direct Known Subclasses:
WseeCoreLogger, WseeMCLogger, WseePersistLogger, WseeRmLogger, WseeSenderLogger, WseeWsatLogger

public abstract class BaseMessages
extends Object

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

BaseMessages

protected BaseMessages()
Method Detail

getLogger

public Logger getLogger()

isLoggable

public final boolean isLoggable(Level level)
Return whether the concrete logger is loggable at this level

Parameters:
level -
Returns:
true/false

getString

protected String getString(String msgId,
                           Object... params)
message string from bundle

Parameters:
msgId - : the message bundle key Id
params - : optional parameters
Returns:
the locale message string from resource bundle

getString

protected String getString(ResourceBundle resBdl,
                           String resId,
                           Object... params)

getKeyFromMethod

protected String getKeyFromMethod()

getCurrentMethod

protected static String getCurrentMethod()

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