org.sblim.cimclient.internal.logging

Class MessageLoader

public final class MessageLoader extends Object

Class MessageLoader encapsulates the access to the resource file containing log messages.
Method Summary
static LevelgetLevel(String pKey)
Returns the level of a given message id based on the naming convention.
static StringgetLocalizedMessage(String pKey)
Returns the localized message for a given key.
static StringgetMessage(String pKey)
Returns the English message for a given key.

Method Detail

getLevel

public static Level getLevel(String pKey)
Returns the level of a given message id based on the naming convention. The convention is: CIM<unique 4 digit id><level token>, e.g. CIM1234S. Valid level tokens are S, W, I and C for SEVERE, WARNING, INFO and CONFIG respectively.

Parameters: pKey The message id

Returns: The level

getLocalizedMessage

public static String getLocalizedMessage(String pKey)
Returns the localized message for a given key.

Parameters: pKey The key

Returns: The message

getMessage

public static String getMessage(String pKey)
Returns the English message for a given key.

Parameters: pKey The key

Returns: The message

Copyright © 2005, 2010 IBM Corporation. All Rights Reserved.