public class Awid3014SensorFactory extends AbstractSensorFactory<AwidSensor>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FACTORY_ID
The Factory ID
|
Constructor and Description |
---|
Awid3014SensorFactory() |
Modifier and Type | Method and Description |
---|---|
void |
bindCommandConfiguration(AbstractCommandConfiguration<?> commandConfiguration,
java.util.Map<?,?> properties)
Called when a configuration appears.
|
void |
createInstance(java.lang.String serviceID)
Create a service with the given attributes.
|
java.lang.String |
getDescription()
Get a description for reader produced by this factory
|
java.lang.String |
getDisplayName()
Get the display name for Readers produced by this factory
|
java.lang.String |
getFactoryID()
Get the id of this factory.
|
javax.management.MBeanInfo |
getServiceDescription(java.lang.String factoryID)
Get a description for a service this factory creates.
|
void |
setNotifierService(NotifierService notifierService)
Called by Spring
|
void |
unbindCommandConfiguration(AbstractCommandConfiguration<?> commandConfiguration,
java.util.Map<?,?> properties)
Called when a configuration disappears.
|
getReaderFactoryDTO, setCommandConfigurations, setReaderInstances
setContext
public static final java.lang.String FACTORY_ID
public void setNotifierService(NotifierService notifierService)
notifierService
- the notifierService to setpublic java.lang.String getFactoryID()
ServiceFactory
public java.lang.String getDisplayName()
AbstractSensorFactory
getDisplayName
in class AbstractSensorFactory<AwidSensor>
public java.lang.String getDescription()
AbstractSensorFactory
getDescription
in class AbstractSensorFactory<AwidSensor>
public javax.management.MBeanInfo getServiceDescription(java.lang.String factoryID)
ServiceFactory
public void createInstance(java.lang.String serviceID) throws java.lang.IllegalArgumentException, InvalidStateException
ServiceFactory
serviceID
- the id of the service to create, this will also be used in the
service param named serviceidjava.lang.IllegalArgumentException
- If the service ID is invalidInvalidStateException
- If service factory is not in a state to create an instance
of the servicepublic void bindCommandConfiguration(AbstractCommandConfiguration<?> commandConfiguration, java.util.Map<?,?> properties)
AbstractSensorFactory
bindCommandConfiguration
in class AbstractSensorFactory<AwidSensor>
public void unbindCommandConfiguration(AbstractCommandConfiguration<?> commandConfiguration, java.util.Map<?,?> properties)
AbstractSensorFactory
unbindCommandConfiguration
in class AbstractSensorFactory<AwidSensor>