public class PcscPluginFactory
extends java.lang.Object
implements org.eclipse.keyple.core.service.PluginFactory
PcscPlugin.| Constructor and Description |
|---|
PcscPluginFactory(org.eclipse.keyple.core.service.event.PluginObservationExceptionHandler pluginObservationExceptionHandler,
org.eclipse.keyple.core.service.event.ReaderObservationExceptionHandler readerObservationExceptionHandler)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PcscPlugin |
getPlugin()
Returns an instance of the
PcscPlugin if the platform is ready |
java.lang.String |
getPluginName() |
public PcscPluginFactory(org.eclipse.keyple.core.service.event.PluginObservationExceptionHandler pluginObservationExceptionHandler,
org.eclipse.keyple.core.service.event.ReaderObservationExceptionHandler readerObservationExceptionHandler)
It is requested to provide during the creation of the factory the references of the exception handlers in charge of receiving notifications of exceptions raised within the observation threads.
The pluginObservationExceptionHandler parameter is mandatory if you intend to observe the plugin. In case of a fatal error during the observation, the handler will receive a notification.
The readerObservationExceptionHandler parameter is mandatory if you intend to observe at least one reader. In case of a fatal error during the observation, the handler will receive a notification.
The handler references can be set to null only when no observation is used. The addition of an observer without having provided a observation exception handler will be refused and notified by an exception.
pluginObservationExceptionHandler - A reference to an object implementing the PluginObservationExceptionHandler interface or null if the plugin will not be observed.readerObservationExceptionHandler - A reference to an object implementing the ReaderObservationExceptionHandler interface or null if no reader will be observed.public java.lang.String getPluginName()
getPluginName in interface org.eclipse.keyple.core.service.PluginFactorypublic PcscPlugin getPlugin()
PcscPlugin if the platform is readygetPlugin in interface org.eclipse.keyple.core.service.PluginFactoryPcscPlugin instance.org.eclipse.keyple.core.service.exception.KeyplePluginInstantiationException - if smartcard.io library is not ready