org.jtheque.core.managers.event
Class EventManager

java.lang.Object
  extended by org.jtheque.core.managers.AbstractManager
      extended by org.jtheque.core.managers.event.EventManager
All Implemented Interfaces:
IEventManager, IManager

public final class EventManager
extends AbstractManager
implements IEventManager

An event manager implementation.

Author:
Baptiste Wicht

Constructor Summary
EventManager()
           
 
Method Summary
 void addEventLog(java.lang.String log, EventLog event)
          Add an event to a log.
 void close()
          Close the manager.
 java.util.List<EventLog> getEventLogs(java.lang.String log)
          Return all the events from a log.
 java.util.Set<java.lang.String> getLogs()
          Return all the logs.
 void init()
          Init the manager.
 void preInit()
          Pre-init the manager.
 
Methods inherited from class org.jtheque.core.managers.AbstractManager
getErrors, getListeners, getLogger, getMessage, getMessage, getStates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventManager

public EventManager()
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.

getLogs

public java.util.Set<java.lang.String> getLogs()
Description copied from interface: IEventManager
Return all the logs.

Specified by:
getLogs in interface IEventManager
Returns:
A Set containing all the logs.

getEventLogs

public java.util.List<EventLog> getEventLogs(java.lang.String log)
Description copied from interface: IEventManager
Return all the events from a log.

Specified by:
getEventLogs in interface IEventManager
Parameters:
log - The log to get the events from.
Returns:
A List containing all the events of the log.

addEventLog

public void addEventLog(java.lang.String log,
                        EventLog event)
Description copied from interface: IEventManager
Add an event to a log.

Specified by:
addEventLog in interface IEventManager
Parameters:
log - The log to add the event to.
event - The event to add.


Copyright © 2009 JTheque. All Rights Reserved.