|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.janrufmonitor.repository.AbstractConfigurableCallerManager
public abstract class AbstractConfigurableCallerManager
This abstract class can be used as base class for a new caller manager implementation which is supporting configuration.
| Field Summary | |
|---|---|
protected String |
CFG_ENABLED
|
protected String |
CFG_PRIO
|
protected Properties |
m_configuration
|
protected String |
m_externalID
|
protected Logger |
m_logger
|
| Constructor Summary | |
|---|---|
AbstractConfigurableCallerManager()
|
|
| Method Summary | |
|---|---|
protected void |
addCreationAttributes(ICaller c)
|
protected void |
addSystemAttributes(ICaller c)
|
String |
getConfigurableID()
Gets the ID of the configurable object. |
abstract String |
getID()
Gets the ID of the new caller manager. |
String |
getManagerID()
Gets the ID of a manager implementation |
abstract String |
getNamespace()
Gets the namespace of the configurable object. |
int |
getPriority()
Gets priority of a manager, which is needed to be handled by the framework. |
abstract IRuntime |
getRuntime()
Gets the runtime objects. |
boolean |
isActive()
Gets the status of the repository manager |
protected boolean |
isInternalNumber(IPhonenumber pn)
Checks wether a IPhonenumber object is an internal number or not. |
void |
restart()
This method is called on restart time by the runtime object. |
void |
setConfiguration(Properties configuration)
Sets the configuration in the configurable object. |
void |
setManagerID(String id)
Sets the ID of a manager implementation |
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface de.janrufmonitor.framework.manager.IRepositoryManager |
|---|
isSupported |
| Field Detail |
|---|
protected String CFG_PRIO
protected String CFG_ENABLED
protected Properties m_configuration
protected Logger m_logger
protected String m_externalID
| Constructor Detail |
|---|
public AbstractConfigurableCallerManager()
| Method Detail |
|---|
public boolean isActive()
IRepositoryManager
isActive in interface IRepositoryManagerpublic int getPriority()
IManager
getPriority in interface IManagerpublic String getConfigurableID()
IConfigurable
getConfigurableID in interface IConfigurablepublic void setConfiguration(Properties configuration)
IConfigurable
setConfiguration in interface IConfigurableconfiguration - the configuration for the given namespacepublic abstract IRuntime getRuntime()
public abstract String getID()
public abstract String getNamespace()
IConfigurable
getNamespace in interface IConfigurableprotected boolean isInternalNumber(IPhonenumber pn)
pn - number to be checked
public void setManagerID(String id)
IManager
setManagerID in interface IManagerpublic String getManagerID()
IManager
getManagerID in interface IManagerpublic void restart()
IManager
restart in interface IManagerpublic void shutdown()
IManager
shutdown in interface IManagerpublic void startup()
IManager
startup in interface IManagerpublic String toString()
toString in class Objectprotected void addCreationAttributes(ICaller c)
protected void addSystemAttributes(ICaller c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||