Constructor and Description |
---|
ReaderDAOImpl()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
bindReader(AbstractSensor<?> reader,
java.util.Dictionary<java.lang.String,java.lang.String> parameters)
Used by spring to bind a new AbstractSensor to this service.
|
void |
bindReaderFactory(AbstractSensorFactory<?> readerFactory,
java.util.Dictionary<java.lang.String,java.lang.String> parameters)
Used by spring to bind a new Reader Factory to this service.
|
AbstractSensor<?> |
getReaderByID(java.lang.String id)
Get a certain reader by its id.
|
java.util.Set<AbstractSensorFactory<?>> |
getReaderFactories()
Get all factories currently available.
|
AbstractSensorFactory<?> |
getReaderFactoryByID(java.lang.String id)
Get a factory by its id.
|
java.util.Set<AbstractSensor<?>> |
getReaders()
Get all readers currently available.
|
void |
setNotifierService(NotifierService notifierService)
Called by Spring
|
void |
setReader(java.util.Set<AbstractSensor<?>> readers)
Used by spring to give the initial list of readers
|
void |
setReaderFactories(java.util.Set<AbstractSensorFactory<?>> factories)
Used by spring to give the initial list of reader factories.
|
void |
unbindReader(AbstractSensor<?> reader,
java.util.Dictionary<java.lang.String,java.lang.String> parameters)
Used by spring to unbind a disappearing AbstractSensor service from this
service.
|
void |
unbindReaderFactory(AbstractSensorFactory<?> readerFactory,
java.util.Dictionary<java.lang.String,java.lang.String> parameters)
Used by spring to unbind a disappearing ReaderConfigurationFactory
service from this service.
|
public AbstractSensor<?> getReaderByID(java.lang.String id)
ReaderDAO
getReaderByID
in interface ReaderDAO
public java.util.Set<AbstractSensorFactory<?>> getReaderFactories()
ReaderDAO
getReaderFactories
in interface ReaderDAO
public AbstractSensorFactory<?> getReaderFactoryByID(java.lang.String id)
ReaderDAO
getReaderFactoryByID
in interface ReaderDAO
public java.util.Set<AbstractSensor<?>> getReaders()
ReaderDAO
getReaders
in interface ReaderDAO
public void bindReaderFactory(AbstractSensorFactory<?> readerFactory, java.util.Dictionary<java.lang.String,java.lang.String> parameters)
readerFactory
- the factory to bindparameters
- public void unbindReaderFactory(AbstractSensorFactory<?> readerFactory, java.util.Dictionary<java.lang.String,java.lang.String> parameters)
readerFactory
- the ReaderFactory to unbindparameters
- public void setReaderFactories(java.util.Set<AbstractSensorFactory<?>> factories)
factories
- the initial list of available reader factoriespublic void bindReader(AbstractSensor<?> reader, java.util.Dictionary<java.lang.String,java.lang.String> parameters)
reader
- the configuration to bindparameters
- public void unbindReader(AbstractSensor<?> reader, java.util.Dictionary<java.lang.String,java.lang.String> parameters)
reader
- the AbstractSensor to unbindparameters
- public void setReader(java.util.Set<AbstractSensor<?>> readers)
readers
- the initial list of available readerspublic void setNotifierService(NotifierService notifierService)
notifierService
- the notifierService to set