Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins {
dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation("org.eclipse.keyple:keyple-common-java-api:2.0.2")
implementation("org.eclipse.keyple:keyple-plugin-java-api:2.3.2")
implementation("org.eclipse.keyple:keyple-plugin-java-api:3.0.0-SNAPSHOT") { isChanging = true }
implementation("org.eclipse.keyple:keyple-util-java-lib:2.4.1")
implementation("net.java.dev.jna:jna:5.15.0")
compileOnly("org.slf4j:slf4j-api:1.7.36")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
group = org.eclipse.keyple
title = Keyple Plugin PCSC Java Lib
description = Keyple add-on to manage PC/SC readers
version = 2.6.3-SNAPSHOT
version = 3.0.0-SNAPSHOT

# Java Configuration
javaSourceLevel = 1.8
Expand Down
15 changes: 11 additions & 4 deletions src/main/java/org/eclipse/keyple/plugin/pcsc/PcscReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,21 @@ enum DisconnectionMode {
PcscReader setIsoProtocol(IsoProtocol isoProtocol);

/**
* Changes the action to be taken after disconnection (default value {@link
* DisconnectionMode#RESET}).
* Changes the action to be taken when the internal {@code closePhysicalChannel()} method is
* called (default value {@link DisconnectionMode#RESET}).
*
* <p>The card is either reset or left as is.
* <p>This setting applies to the forced-close path (e.g. non-observable mode, or abnormal
* termination). In observable mode, the channel is closed by {@code deselectCard()} (always
* SCARD_UNPOWER_CARD) before card-removal detection, so the internal {@code
* closePhysicalChannel()} method is typically a no-op and this setting has no effect.
*
* <p>{@link DisconnectionMode#UNPOWER} and {@link DisconnectionMode#EJECT} require the default
* jnasmartcardio provider; they silently fall back to {@link DisconnectionMode#RESET} with other
* providers.
*
* @param disconnectionMode The {@link DisconnectionMode} to use (must be not null).
* @return This instance.
* @throws IllegalArgumentException If disconnectionMode is null
* @throws IllegalArgumentException If disconnectionMode is null.
* @since 2.0.0
*/
PcscReader setDisconnectionMode(DisconnectionMode disconnectionMode);
Expand Down
Loading
Loading