public class CommandDAOImpl extends java.lang.Object implements CommandDAO
Constructor and Description |
---|
CommandDAOImpl() |
Modifier and Type | Method and Description |
---|---|
void |
bindCommand(AbstractCommandConfiguration<?> commandConfiguration,
java.util.Dictionary<java.lang.String,java.lang.String> parameters)
Used by spring to bind a new CommandConfigurationto this service.
|
void |
bindCommandFactory(AbstractCommandConfigurationFactory<?> commandConfigurationFactory,
java.util.Dictionary<java.lang.String,java.lang.String> parameters)
Used by spring to bind a new CommandConfigurationFactory to this service.
|
AbstractCommandConfiguration<?> |
getCommandByID(java.lang.String id)
Get a command by its ID.
|
java.util.Set<AbstractCommandConfigurationFactory<?>> |
getCommandFactories()
Get currently available command factories.
|
AbstractCommandConfigurationFactory<?> |
getCommandFactory(java.lang.String id)
Get a command factory by its id.
|
java.util.Set<AbstractCommandConfigurationFactory<?>> |
getCommandFactoryByReaderID(java.lang.String id)
Get a command factory by the reader ID that it is associated with.
|
java.util.Set<AbstractCommandConfiguration<?>> |
getCommands()
Get commands currently created.
|
void |
setCommandFactories(java.util.Set<AbstractCommandConfigurationFactory<?>> factories)
Used by spring to give the initial list of command configuration
factories.
|
void |
setCommands(java.util.Set<AbstractCommandConfiguration<?>> configurations)
Used by spring to give the initial list of command configuration
factories.
|
void |
setNotifierService(NotifierService notifierService)
Called by Spring
|
void |
unbindCommand(AbstractCommandConfiguration<?> commandConfiguration,
java.util.Dictionary<java.lang.String,java.lang.String> parameters)
Used by spring to unbind a disappearing Command Configuration service
from this service.
|
void |
unbindCommandFactory(AbstractCommandConfigurationFactory<?> commandConfigurationFactory,
java.util.Dictionary<java.lang.String,java.lang.String> parameters)
Used by spring to unbind a disappearing CommandConfigurationFactory
service from this service.
|
public AbstractCommandConfiguration<?> getCommandByID(java.lang.String id)
CommandDAO
getCommandByID
in interface CommandDAO
id
- The ID of the desired command.public java.util.Set<AbstractCommandConfigurationFactory<?>> getCommandFactories()
CommandDAO
getCommandFactories
in interface CommandDAO
public AbstractCommandConfigurationFactory<?> getCommandFactory(java.lang.String id)
CommandDAO
getCommandFactory
in interface CommandDAO
id
- The ID of the desired factory.public java.util.Set<AbstractCommandConfigurationFactory<?>> getCommandFactoryByReaderID(java.lang.String id)
CommandDAO
getCommandFactoryByReaderID
in interface CommandDAO
id
- The ID of the ReaderFactorypublic java.util.Set<AbstractCommandConfiguration<?>> getCommands()
CommandDAO
getCommands
in interface CommandDAO
public void bindCommand(AbstractCommandConfiguration<?> commandConfiguration, java.util.Dictionary<java.lang.String,java.lang.String> parameters)
commandConfiguration
- the configuration to bindparameters
- public void unbindCommand(AbstractCommandConfiguration<?> commandConfiguration, java.util.Dictionary<java.lang.String,java.lang.String> parameters)
commandConfiguration
- the AbstractCommandConfiguration to unbindparameters
- public void setCommands(java.util.Set<AbstractCommandConfiguration<?>> configurations)
configurations
- the initial list of available command configuration factoriespublic void bindCommandFactory(AbstractCommandConfigurationFactory<?> commandConfigurationFactory, java.util.Dictionary<java.lang.String,java.lang.String> parameters)
commandConfigurationFactory
- the factory to bindparameters
- public void unbindCommandFactory(AbstractCommandConfigurationFactory<?> commandConfigurationFactory, java.util.Dictionary<java.lang.String,java.lang.String> parameters)
commandConfigurationFactory
- the CommandConfigurationFactory to unbindparameters
- public void setCommandFactories(java.util.Set<AbstractCommandConfigurationFactory<?>> factories)
factories
- the initial list of available command configuration factoriespublic void setNotifierService(NotifierService notifierService)
notifierService
- the notifierService to set