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
withStubReader
andStubSmartCard
. Manages allocation readers by group reference.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
plugPoolReader(java.lang.String groupReference, java.lang.String readerName, StubSmartCard card)
Plug synchronously a newStubReader
in theStubPoolPlugin
associated to groupReference and a stub card.void
unplugPoolReader(java.lang.String readerName)
Unplug synchronously a pool reader.void
unplugPoolReaders(java.lang.String groupReference)
Unplug synchronously all readers associated to a groupReference.
-
-
-
Method Detail
-
plugPoolReader
void plugPoolReader(java.lang.String groupReference, java.lang.String readerName, StubSmartCard card)
Plug synchronously a newStubReader
in theStubPoolPlugin
associated 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
void unplugPoolReaders(java.lang.String groupReference)
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
void unplugPoolReader(java.lang.String readerName)
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
-
-