Class JCOPSimCardTerminalFactory
- java.lang.Object
-
- de.cardcontact.opencard.terminal.jcopsim.JCOPSimCardTerminalFactory
-
- All Implemented Interfaces:
CardTerminalFactory
public class JCOPSimCardTerminalFactory extends java.lang.Object implements CardTerminalFactory
Class implementing a JCOP simulation card terminal factory- Author:
- Frank Thater (info@cardcontact.de)
-
-
Field Summary
-
Fields inherited from interface opencard.core.terminal.CardTerminalFactory
TERMINAL_ADDRESS_ENTRY, TERMINAL_NAME_ENTRY, TERMINAL_TYPE_ENTRY
-
-
Constructor Summary
Constructors Constructor Description JCOPSimCardTerminalFactory()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
deinitialize the CardTerminalFactoryvoid
createCardTerminals(CardTerminalRegistry ctr, java.lang.String[] terminalInfo)
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
-
-
-
Method Detail
-
createCardTerminals
public void createCardTerminals(CardTerminalRegistry ctr, java.lang.String[] terminalInfo) 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 interfaceCardTerminalFactory
- Parameters:
ctr
- the CardTerminalRegistry for registration-processterminalInfo
- the parameter array for the terminal. {TerminalName, TerminalType, factory-specific count of parameters....}.- Throws:
CardTerminalException
- thrown when CardTerminal error occuredTerminalInitException
- thrown when terminalInfo is incorrect or factory not able to support requested terminal type.
-
open
public void open() throws CardTerminalException
Description copied from interface:CardTerminalFactory
initialize the CardTerminalFactory- Specified by:
open
in interfaceCardTerminalFactory
- 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 interfaceCardTerminalFactory
- Throws:
CardTerminalException
- thrown when error occurred while close deinitializes the factory.
-
-