org.jtheque.core.managers.message
Class MessageManager

java.lang.Object
  extended by org.jtheque.core.managers.message.MessageManager
All Implemented Interfaces:
IManager, IMessageManager

public final class MessageManager
extends java.lang.Object
implements IMessageManager, IManager

Author:
Baptiste Wicht

Constructor Summary
MessageManager()
           
 
Method Summary
 void close()
          Close the manager.
 void displayIfNeeded()
          Display the messages if needed.
 java.util.List<Message> getMessages()
          Return all the messages.
 void init()
          Init the manager.
 void loadMessages()
          Load the messages from the different sources.
 void preInit()
          Pre-init the manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageManager

public MessageManager()
Method Detail

preInit

public void preInit()
Description copied from interface: IManager
Pre-init the manager. This operation is called before modules preplug.

Specified by:
preInit in interface IManager

init

public void init()
          throws ManagerException
Description copied from interface: IManager
Init the manager. This operation is called after modules preplug but before module plug.

Specified by:
init in interface IManager
Throws:
ManagerException - If an error occurs during the init process.

close

public void close()
           throws ManagerException
Description copied from interface: IManager
Close the manager.

Specified by:
close in interface IManager
Throws:
ManagerException - If an error occurs during the close process.

loadMessages

public void loadMessages()
Description copied from interface: IMessageManager
Load the messages from the different sources.

Specified by:
loadMessages in interface IMessageManager

displayIfNeeded

public void displayIfNeeded()
Description copied from interface: IMessageManager
Display the messages if needed.

Specified by:
displayIfNeeded in interface IMessageManager

getMessages

public java.util.List<Message> getMessages()
Description copied from interface: IMessageManager
Return all the messages.

Specified by:
getMessages in interface IMessageManager
Returns:
A List containing all the messages.


Copyright © 2009 JTheque. All Rights Reserved.