Package org.eclipse.keyple.plugin.stub
Interface StubPoolPlugin
- All Superinterfaces:
org.eclipse.keyple.core.common.KeyplePluginExtension
public interface StubPoolPlugin
extends org.eclipse.keyple.core.common.KeyplePluginExtension
Simulates a @
PoolPluginSpi with StubReader and
StubSmartCard. Manages allocation readers by group reference.-
Method Summary
Modifier and TypeMethodDescriptionvoidplugPoolReader(String groupReference, String readerName, StubSmartCard card) Plug synchronously a newStubReaderin theStubPoolPluginassociated to groupReference and a stub card.voidunplugPoolReader(String readerName) Unplug synchronously a pool reader.voidunplugPoolReaders(String groupReference) Unplug synchronously all readers associated to a groupReference.
-
Method Details
-
plugPoolReader
Plug synchronously a newStubReaderin theStubPoolPluginassociated to groupReference and a stub card. A READER_CONNECTED event will be raised.- Parameters:
groupReference- group reference of the new stub reader (mandatory)readerName- name of the new stub reader (mandatory). Each reader should have a unique name, no matter to what groupReference they are associated tocard- insert a card at creation (can be null)
-
unplugPoolReaders
Unplug synchronously all readers associated to a groupReference. A READER_DISCONNECTED event will be raised.- Parameters:
groupReference- groupReference of the reader(s) to be unplugged (mandatory) @since 2.0.0
-
unplugPoolReader
Unplug synchronously a pool reader. A READER_DISCONNECTED event will be raised.- Parameters:
readerName- name of the reader to be unplugged (mandatory) @since 2.0.0
-