Package org.eclipse.keyple.plugin.stub
Interface StubPlugin
-
- All Superinterfaces:
org.eclipse.keyple.core.common.KeyplePluginExtension
public interface StubPlugin extends org.eclipse.keyple.core.common.KeyplePluginExtension
Specific methods of the Stub Plugin. Implemented as aKeyplePluginExtension
. To invoke those methods use Plugin#getExtension(StubPlugin.class) from the Plugin class.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
plugReader(java.lang.String name, boolean isContactless, StubSmartCard card)
Plug a newStubReader
.void
unplugReader(java.lang.String name)
Unplug aStubReader
.
-
-
-
Method Detail
-
plugReader
void plugReader(java.lang.String name, boolean isContactless, StubSmartCard card)
Plug a newStubReader
. This operation is asynchronous and will raise a READER_CONNECTED event. A newStubReader
is created and make available in the plugin- Parameters:
name
- name for the reader (not nullable and unique)isContactless
- true if the created reader should be contactless, false if not.card
- created reader can contain a card (nullable)- Since:
- 2.0.0
-
unplugReader
void unplugReader(java.lang.String name)
Unplug aStubReader
. This operation is asynchronous and will raise a READER_DISCONNECTED event. The reader is removed from the * available list of reader. It does nothing if no reader matches the name.- Parameters:
name
- the name of the reader to unplug (not nullable)- Since:
- 2.0.0
-
-