de.cardcontact.opencard.terminal.ctapi4ocf
Class CTAPICardTerminalFactory
java.lang.Object
de.cardcontact.opencard.terminal.ctapi4ocf.CTAPICardTerminalFactory
- All Implemented Interfaces:
- CardTerminalFactory
public class CTAPICardTerminalFactory
- extends java.lang.Object
- implements CardTerminalFactory
Implements a card terminal factory that can instantiate CT-API card terminals.
Method Summary |
void |
close()
deinitialize the CardTerminalFactory |
void |
createCardTerminals(CardTerminalRegistry ctr,
java.lang.String[] terminfo)
create a specific CardTerminal object that knows how to handle
a specific card terminal and register it to the CardTerminalRegistry. |
void |
open()
initialize the CardTerminalFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CTAPICardTerminalFactory
public CTAPICardTerminalFactory()
open
public void open()
throws CardTerminalException
- Description copied from interface:
CardTerminalFactory
- initialize the CardTerminalFactory
- Specified by:
open
in interface CardTerminalFactory
- Throws:
CardTerminalException
- thrown when error occurred while open initializes the factory.
close
public void close()
throws CardTerminalException
- Description copied from interface:
CardTerminalFactory
- deinitialize the CardTerminalFactory
- Specified by:
close
in interface CardTerminalFactory
- Throws:
CardTerminalException
- thrown when error occurred while close deinitializes the factory.
createCardTerminals
public void createCardTerminals(CardTerminalRegistry ctr,
java.lang.String[] terminfo)
throws CardTerminalException,
TerminalInitException
- Description copied from interface:
CardTerminalFactory
- create a specific CardTerminal object that knows how to handle
a specific card terminal and register it to the CardTerminalRegistry.
- Specified by:
createCardTerminals
in interface CardTerminalFactory
- Parameters:
ctr
- the CardTerminalRegistry for registration-processterminfo
- the parameter array for the terminal.
{TerminalName, TerminalType, factory-specific count of parameters....}.
- Throws:
CardTerminalException
- thrown when CardTerminal error occured
TerminalInitException
- thrown when terminalInfo is incorrect or factory not able to
support requested terminal type.