org.media.datastore.sepengine
Class LogManager

java.lang.Object
  |
  +--org.media.datastore.sepengine.LogManager

public class LogManager
extends Object

Class responsible for managing logging messages. Loading them from the resource bundles and properly displaying them on the requested writer.

Version:
$Revision: 1.6 $ $Date: 2001/11/29 17:32:14 $
Author:
Szabo Csaba
See Also:
String, Properties

Field Summary
protected static LogManager _logManager
           
 
Method Summary
 String getMessage(String message_id)
           
static LogManager getReference()
          Method for getting the LogManager instance.
 void message(String type_id, String message_id)
          The main method for displaying system messages for datastore.
 void message(String type_id, String message_id, String suplement)
          The main method for displaying system messages for datastore.
 void message(String type_id, String message_id, String suplement, String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logManager

protected static LogManager _logManager
Method Detail

getReference

public static LogManager getReference()
Method for getting the LogManager instance. Don't forger that it implements a Singleton pattern.

Returns:
The default instance of LogManager

message

public void message(String type_id,
                    String message_id)
The main method for displaying system messages for datastore.

Parameters:
type_id - The type of the messages (error, warning, ...). This is actually an key in the resource bundle where the actual value which will be displayed is hold. datastore.messages.type. has to be inserted before the key in the resource bundle to store such messages types.
   datastore.messages.type.warning=[WARNING]
 
message_id - The id of the messages. This is actually an key in the resource bundle where the actual value which will be displayed is hold. datastore.messages. has to be inserted before the key in the resource bundle to store such messages.
   datastore.messages.file_missing=Sorry the file: xxx.jar \n is mising.
 

message

public void message(String type_id,
                    String message_id,
                    String suplement)
The main method for displaying system messages for datastore.

Parameters:
type_id - The type of the messages (error, warning, ...). This is actually an key in the resource bundle where the actual value which will be displayed is hold. datastore.messages.type. has to be inserted before the key in the resource bundle to store such messages types.
   datastore.messages.type.warning=[WARNING]
 
message_id - The id of the messages. This is actually an key in the resource bundle where the actual value which will be displayed is hold. datastore.messages. has to be inserted before the key in the resource bundle to store such messages.
   datastore.messages.file_missing=Sorry the file: xxx.jar \n is mising.
 
suplement - Another text to be added to the message.

message

public void message(String type_id,
                    String message_id,
                    String suplement,
                    String prefix)

getMessage

public String getMessage(String message_id)


"Copyright © 2001 Internet Multicasting Services & media.org. All Rights Reserved."