de.janrufmonitor.framework.command
Class AbstractConfigurableCommand

java.lang.Object
  extended by de.janrufmonitor.framework.command.AbstractCommand
      extended by de.janrufmonitor.framework.command.AbstractConfigurableCommand
All Implemented Interfaces:
ICommand, IConfigurable

public abstract class AbstractConfigurableCommand
extends AbstractCommand
implements IConfigurable

This class is an abstract implementation of a command with configuration capabilities.

Author:
Thilo Brandt

Field Summary
protected  Properties m_configuration
           
 
Fields inherited from class de.janrufmonitor.framework.command.AbstractCommand
m_i18n, m_language, m_logger
 
Constructor Summary
AbstractConfigurableCommand()
           
 
Method Summary
 String getConfigurableID()
          Gets the ID of the configurable object.
 void setConfiguration(Properties configuration)
          Sets the configuration in the configurable object.
 
Methods inherited from class de.janrufmonitor.framework.command.AbstractCommand
getLabel, getNamespace, getParameters, getRuntime, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.janrufmonitor.framework.configuration.IConfigurable
getNamespace
 
Methods inherited from interface de.janrufmonitor.framework.command.ICommand
execute, getID, isExecutable, isExecuting
 

Field Detail

m_configuration

protected Properties m_configuration
Constructor Detail

AbstractConfigurableCommand

public AbstractConfigurableCommand()
Method Detail

getConfigurableID

public String getConfigurableID()
Description copied from interface: IConfigurable
Gets the ID of the configurable object.

Specified by:
getConfigurableID in interface IConfigurable
Returns:
a valid and unique ID

setConfiguration

public void setConfiguration(Properties configuration)
Description copied from interface: IConfigurable
Sets the configuration in the configurable object. This method is called by the configuration notifier to interact with its registered components.

Specified by:
setConfiguration in interface IConfigurable
Parameters:
configuration - the configuration for the given namespace


Copyright © 2010 by Thilo Brandt. All Rights Reserved.