Class Factory
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposDeviceFactory
de.gmxhome.conrad.jpos.jpos_base.cashchanger.Factory
- Direct Known Subclasses:
CashChangerFactory
General part of CashChanger factory for JPOS devices using this framework.
-
Field Summary
Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposDeviceFactory
CurrentEntry, Devices
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDevice(int index, JposDevice dev)
Deprecated.addDevice(int index, JposDevice dev, jpos.config.JposEntry entry)
Perform basic initialization of given device and property set.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposDeviceFactory
deleteDevice, getDevice, putDevice, validateJposConfiguration
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
addDevice
public CashChangerService addDevice(int index, JposDevice dev, jpos.config.JposEntry entry) throws jpos.JposExceptionPerform basic initialization of given device and property set. Links property set and driver to each other and sets driver specific property defaults.- Parameters:
index
- CashChanger property set index.dev
- CashChanger implementation instance derived from JposDevice to be used by the service.entry
- Property list from jpos configuration.- Returns:
- CashChangerService object.
- Throws:
jpos.JposException
- If property set could not be retrieved.
-
addDevice
@Deprecated public CashChangerService addDevice(int index, JposDevice dev) throws jpos.JposExceptionDeprecated.Perform basic initialization of given device and property set. Links property set and driver to each other and sets driver specific property defaults.- Parameters:
index
- CashChanger property set index.dev
- CashChanger implementation instance derived from JposDevice to be used by the service.- Returns:
- CashChangerService object.
- Throws:
jpos.JposException
- If property set could not be retrieved.
-