de.janrufmonitor.repository
Interface ICallManagerFactory


public interface ICallManagerFactory

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

Author:
Thilo Brandt

Method Summary
 String[] getAllCallManagerIDs()
          Gets all IDs of registered call manager objects.
 List getAllCallManagers()
          Gets a list with all call manager objects.
 ICallManager getCallManager(String id)
          Gets the call manager object for a certain ID
 String[] getCallManagerIDs(Class type)
          Gets all call mananger objects implementing a certain type.
 ICallManager getDefaultCallManager()
          Gets the default call manager object.
 List getTypedCallManagers(Class type)
          Gets all call 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

getCallManager

ICallManager getCallManager(String id)
Gets the call manager object for a certain ID

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

getDefaultCallManager

ICallManager getDefaultCallManager()
Gets the default call manager object. The default call manager is normally represented by the "DefaultCallManager" string.

Returns:
the default call manager instance

getAllCallManagers

List getAllCallManagers()
Gets a list with all call manager objects.

Returns:
list with all call manager objects.

getTypedCallManagers

List getTypedCallManagers(Class type)
Gets all call mananger objects implementing a certain type.

Parameters:
type - type of call manager instance
Returns:
list with call mananger instances.

getAllCallManagerIDs

String[] getAllCallManagerIDs()
Gets all IDs of registered call manager objects.

Returns:
list with all registered IDs

getCallManagerIDs

String[] getCallManagerIDs(Class type)
Gets all call mananger objects implementing a certain type.

Parameters:
type - type of call manager instance
Returns:
list with call mananger instances.

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.