de.janrufmonitor.repository
Interface ICallerManagerFactory


public interface ICallerManagerFactory

This interface must be implemented by a caller manager factory object. The caller manager factory takes care about the concurrent existence of caller managers. Its task is to maintain and handle all registered caller manager instances.

Author:
Thilo Brandt

Method Summary
 String[] getAllCallerManagerIDs()
          Gets all IDs of registered caller manager objects.
 List getAllCallerManagers()
          Gets a list with all caller manager objects.
 ICallerManager getCallerManager(String id)
          Gets the caller manager object for a certain ID
 ICallerManager getDefaultCallerManager()
          Gets the default caller manager object.
 List getTypedCallerManagers(Class type)
          Gets all caller mananger objects implementing a certain type.
 boolean isManagerAvailable(String id)
          Checks wether a manager is available or not.
 void shutdown()
          This method is called on shutdown time by the runtime object.
 void startup()
          This method is called on startup time by the runtime object.
 

Method Detail

getCallerManager

ICallerManager getCallerManager(String id)
Gets the caller manager object for a certain ID

Parameters:
id - ID of the caller manager implementation
Returns:
a caller manager instance

getDefaultCallerManager

ICallerManager getDefaultCallerManager()
Gets the default caller manager object. The default caller manager is normally represented by the "DefaultCallerManager" string.

Returns:
the default caller manager instance

getAllCallerManagers

List getAllCallerManagers()
Gets a list with all caller manager objects.

Returns:
list with all caller manager objects.

getTypedCallerManagers

List getTypedCallerManagers(Class type)
Gets all caller mananger objects implementing a certain type.

Parameters:
type - type of caller manager instance (interface definition from de.janrufmonitor.repository.types.*)
Returns:
list with caller mananger instances.

getAllCallerManagerIDs

String[] getAllCallerManagerIDs()
Gets all IDs of registered caller manager objects.

Returns:
list with all registered IDs

startup

void startup()
This method is called on startup time by the runtime object.


shutdown

void shutdown()
This method is called on shutdown time by the runtime object.


isManagerAvailable

boolean isManagerAvailable(String id)
Checks wether a manager is available or not.

Parameters:
id - id of the manager to check
Returns:


Copyright © 2010 by Thilo Brandt. All Rights Reserved.