public interface StubPlugin
extends org.eclipse.keyple.core.service.event.ObservablePlugin
StubReaderImpl and @StubSmartCard. Plug a new StubReader with StubPlugin#plugReader and insert an implementation of
your own of StubSmartCard to start simulation communication.| Modifier and Type | Method and Description |
|---|---|
void |
plugReader(java.lang.String name,
java.lang.Boolean synchronous)
Plug a new
StubReader available in the plugin |
void |
plugReader(java.lang.String name,
boolean isContactless,
java.lang.Boolean synchronous)
Plug a new
StubReader available in the plugin |
void |
plugReaders(java.util.Set<java.lang.String> names,
java.lang.Boolean synchronous)
Plug multiple new
StubReader available in the plugin |
void |
unplugReader(java.lang.String name,
java.lang.Boolean synchronous)
Unplug a
StubReader |
void |
unplugReaders(java.util.Set<java.lang.String> names,
java.lang.Boolean synchronous)
Unplug a list of
StubReader |
void plugReader(java.lang.String name,
java.lang.Boolean synchronous)
StubReader available in the pluginname - name of the created readersynchronous - should the stubreader added synchronously (without waiting for the
observation thread). A READER_CONNECTED event is raised in both casesvoid plugReader(java.lang.String name,
boolean isContactless,
java.lang.Boolean synchronous)
StubReader available in the pluginname - name of the created readerisContactless - true if the created reader should be contactless, false if not.synchronous - should the stubreader added synchronously (without waiting for the
observation thread). A READER_CONNECTED event is raised in both casesvoid plugReaders(java.util.Set<java.lang.String> names,
java.lang.Boolean synchronous)
StubReader available in the pluginnames - names of readers to be connectedsynchronous - should the stubreader be added synchronously (without waiting for the
observation thread). A READER_CONNECTED event is raised in both casesvoid unplugReader(java.lang.String name,
java.lang.Boolean synchronous)
StubReadername - the name of the readersynchronous - should the stubreader be removed synchronously (without waiting for the
observation thread). A READER_DISCONNECTED event is raised in both casesjava.lang.IllegalStateException - in case of a reader exceptionvoid unplugReaders(java.util.Set<java.lang.String> names,
java.lang.Boolean synchronous)
StubReadernames - names of the reader to be unpluggedsynchronous - should the stubreader removed synchronously (without waiting for the
observation thread). A READER_DISCONNECTED event is raised in both cases