Package org.eclipse.keyple.card.generic
Class GenericExtensionService
- java.lang.Object
-
- org.eclipse.keyple.card.generic.GenericExtensionService
-
- All Implemented Interfaces:
org.eclipse.keyple.core.common.KeypleCardExtension
public final class GenericExtensionService extends java.lang.Object implements org.eclipse.keyple.core.common.KeypleCardExtension
Card extension service providing basic access to APDU exchange functions with a card.- Since:
- 2.0.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtension
createCardResourceProfileExtension(GenericCardSelection genericCardSelection)
Creates an instance ofCardResourceProfileExtension
to be provided to theCardResourceService
.GenericCardSelection
createCardSelection()
Creates an instance ofGenericCardSelection
.CardTransactionManager
createCardTransaction(org.calypsonet.terminal.reader.CardReader reader, org.calypsonet.terminal.reader.selection.spi.SmartCard card)
Creates an instance ofCardTransactionManager
.java.lang.String
getCardApiVersion()
java.lang.String
getCommonApiVersion()
static GenericExtensionService
getInstance()
Gets the unique instance of this object.java.lang.String
getReaderApiVersion()
-
-
-
Method Detail
-
getInstance
public static GenericExtensionService getInstance()
Gets the unique instance of this object.- Returns:
- A not null reference.
-
createCardSelection
public GenericCardSelection createCardSelection()
Creates an instance ofGenericCardSelection
.- Returns:
- A not null reference.
- Since:
- 2.0.0
-
createCardTransaction
public CardTransactionManager createCardTransaction(org.calypsonet.terminal.reader.CardReader reader, org.calypsonet.terminal.reader.selection.spi.SmartCard card)
Creates an instance ofCardTransactionManager
.- Parameters:
reader
- The reader through which the card communicates.card
- The initial card data provided by the selection process.- Returns:
- A not null reference.
- Since:
- 2.0.0
-
createCardResourceProfileExtension
public org.eclipse.keyple.core.service.resource.spi.CardResourceProfileExtension createCardResourceProfileExtension(GenericCardSelection genericCardSelection)
Creates an instance ofCardResourceProfileExtension
to be provided to theCardResourceService
.The provided argument defines the selection rules to be applied to the card when detected by the card resource service.
- Parameters:
genericCardSelection
- A not nullGenericCardSelection
.- Returns:
- A not null reference.
- Throws:
java.lang.IllegalArgumentException
- If genericCardSelection is null.- Since:
- 2.0.0
-
getCardApiVersion
public java.lang.String getCardApiVersion()
- Specified by:
getCardApiVersion
in interfaceorg.eclipse.keyple.core.common.KeypleCardExtension
- Since:
- 2.0.0
-
getReaderApiVersion
public java.lang.String getReaderApiVersion()
- Specified by:
getReaderApiVersion
in interfaceorg.eclipse.keyple.core.common.KeypleCardExtension
- Since:
- 2.0.0
-
getCommonApiVersion
public java.lang.String getCommonApiVersion()
- Specified by:
getCommonApiVersion
in interfaceorg.eclipse.keyple.core.common.KeypleCardExtension
- Since:
- 2.0.0
-
-