Package org.eclipse.keyple.plugin.stub
Class StubPluginFactoryBuilder.Builder
- java.lang.Object
-
- org.eclipse.keyple.plugin.stub.StubPluginFactoryBuilder.Builder
-
- Enclosing class:
- StubPluginFactoryBuilder
public static class StubPluginFactoryBuilder.Builder extends java.lang.ObjectBuilder to build aStubPluginFactory.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StubPluginFactorybuild()Returns an instance of StubPluginFactory created from the fields set on this builder.StubPluginFactoryBuilder.BuilderwithMonitoringCycleDuration(int duration)Configure the sleep time between two cycles for card and reader monitoringStubPluginFactoryBuilder.BuilderwithStubReader(java.lang.String name, boolean isContactLess, StubSmartCard card)Initialize the plugin with a stub reader.
-
-
-
Method Detail
-
withStubReader
public StubPluginFactoryBuilder.Builder withStubReader(java.lang.String name, boolean isContactLess, StubSmartCard card)
Initialize the plugin with a stub reader. Multiple readers can be added. The reader can contain a smart card. Readers name should be unique.- Parameters:
name- name for the initially inserted reader (not nullable and unique)isContactLess- true if the created reader should be contactless, false if not.card- (optional) inserted smart card- Returns:
- instance of the builder
- Since:
- 2.0.0
-
withMonitoringCycleDuration
public StubPluginFactoryBuilder.Builder withMonitoringCycleDuration(int duration)
Configure the sleep time between two cycles for card and reader monitoring- Parameters:
duration- in milliseconds, default value : 0- Returns:
- instance of the builder
- Since:
- 2.0.0
-
build
public StubPluginFactory build()
Returns an instance of StubPluginFactory created from the fields set on this builder.- Returns:
- A
StubPluginFactory - Since:
- 2.0.0
-
-