A factory for CardTerminal objects.
It allows an application to
Each TerminalFactory has a type
indicating how it
was implemented. It must be specified when the implementation is obtained
using a getInstance() method and can be retrieved
via the TerminalFactory.getType() method.
The following standard type names have been defined:
PC/SC
- an implementation that calls into the PC/SC Smart Card stack
of the host platform.
Implementations do not require parameters and accept "null" as argument
in the getInstance() calls.
None
- an implementation that does not supply any CardTerminals. On platforms
that do not support other implementations,
TerminalFactory.getDefaultType() returns
None
and
TerminalFactory.getDefault() returns an instance of a None
TerminalFactory. Factories of this type cannot be obtained by calling the
getInstance()
methods.
Additional standard types may be defined in the future.
Note:
Provider implementations that accept initialization parameters via the
getInstance()
methods are strongly
encouraged to use a Properties object as the
representation for String name-value pair based parameters whenever
possible. This allows applications to more easily interoperate with
multiple providers than if each provider used different provider
specific class as parameters.
TerminalFactory utilizes an extensible service provider framework.
Service providers that wish to add a new implementation should see the
TerminalFactorySpi class for more information.