de.janrufmonitor.repository
Class AbstractReadOnlyDatabaseCallerManager

java.lang.Object
  extended by de.janrufmonitor.repository.AbstractConfigurableCallerManager
      extended by de.janrufmonitor.repository.AbstractReadOnlyCallerManager
          extended by de.janrufmonitor.repository.AbstractReadOnlyDatabaseCallerManager
All Implemented Interfaces:
IConfigurable, IManager, IRepositoryManager, ICallerManager, IIdentifyCallerRepository

public abstract class AbstractReadOnlyDatabaseCallerManager
extends AbstractReadOnlyCallerManager


Field Summary
protected  ICallerDatabaseHandler m_dbh
           
 
Fields inherited from class de.janrufmonitor.repository.AbstractConfigurableCallerManager
CFG_ENABLED, CFG_PRIO, m_configuration, m_externalID, m_logger
 
Constructor Summary
AbstractReadOnlyDatabaseCallerManager()
           
 
Method Summary
protected abstract  ICallerDatabaseHandler getDatabaseHandler()
          Creates a new instance of a specific database handler.
 boolean isSupported(Class c)
          Returns wether a repository type (de.janrufmonitor.repository.types.*) is suppored by a repository manager implementation.
 void shutdown()
          This method is called on shutdown time by the runtime object.
 
Methods inherited from class de.janrufmonitor.repository.AbstractConfigurableCallerManager
addCreationAttributes, addSystemAttributes, getConfigurableID, getID, getManagerID, getNamespace, getPriority, getRuntime, isActive, isInternalNumber, restart, setConfiguration, setManagerID, startup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.janrufmonitor.repository.types.IIdentifyCallerRepository
getCaller
 

Field Detail

m_dbh

protected ICallerDatabaseHandler m_dbh
Constructor Detail

AbstractReadOnlyDatabaseCallerManager

public AbstractReadOnlyDatabaseCallerManager()
Method Detail

isSupported

public boolean isSupported(Class c)
Description copied from interface: IRepositoryManager
Returns wether a repository type (de.janrufmonitor.repository.types.*) is suppored by a repository manager implementation.

Specified by:
isSupported in interface IRepositoryManager
Overrides:
isSupported in class AbstractReadOnlyCallerManager
Parameters:
c - Interface to be supported.
Returns:
true is interface is supported, otherwise false.

shutdown

public void shutdown()
Description copied from interface: IManager
This method is called on shutdown time by the runtime object.

Specified by:
shutdown in interface IManager
Overrides:
shutdown in class AbstractConfigurableCallerManager

getDatabaseHandler

protected abstract ICallerDatabaseHandler getDatabaseHandler()
Creates a new instance of a specific database handler.

Returns:
a valid database handler, must not be null.


Copyright © 2010 by Thilo Brandt. All Rights Reserved.