com.jaccal
Class JaccalPCSCSessionFactory

java.lang.Object
  extended bycom.jaccal.SessionFactory
      extended bycom.jaccal.JaccalPCSCSessionFactory

public class JaccalPCSCSessionFactory
extends SessionFactory

Jaccal-PCSC specific implementation of the SessionFactory

Author:
Thomas Tarpin-Lyonnet
See Also:
Session, SessionFactory, JaccalPCSCSession, JaccalPCSC, JaccalPCSCException

Field Summary
 
Fields inherited from class com.jaccal.SessionFactory
instance, readers, sessions
 
Constructor Summary
JaccalPCSCSessionFactory()
          Constructor
 
Method Summary
 Session createSession(String name)
          Creates a session, assigning the name.
 Session createSession(String name, int cardType)
          Creates a session, assigning the name, for the specific card type to detect.
 Session createSession(String name, String reader)
          Creates a session, assigning the name and specifying which reader to use
 Session[] createSessions()
          Creates a list of all sessions available in the system
 Session[] createSessions(int cardType)
           
 
Methods inherited from class com.jaccal.SessionFactory
addReader, getAllReaders, getCardTypes, getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaccalPCSCSessionFactory

public JaccalPCSCSessionFactory()
                         throws SessionFactoryException
Constructor

Throws:
SessionFactoryException
Method Detail

createSession

public Session createSession(String name,
                             String reader)
                      throws SessionFactoryException
Creates a session, assigning the name and specifying which reader to use

Specified by:
createSession in class SessionFactory
Parameters:
name - The name for this session
reader - The reader to access for this session
Returns:
A session object
Throws:
SessionFactoryException

createSession

public Session createSession(String name)
                      throws SessionFactoryException
Creates a session, assigning the name. Uses the first reader it detects to bind the session

Specified by:
createSession in class SessionFactory
Parameters:
name - The name of the session
Returns:
A Session object
Throws:
SessionFactoryException

createSession

public Session createSession(String name,
                             int cardType)
                      throws SessionFactoryException
Creates a session, assigning the name, for the specific card type to detect. This will take the first card of the indicated type, that is found. Not implemented yet.

Specified by:
createSession in class SessionFactory
Parameters:
name - The name of the session
cardType - The card type
Returns:
A Session object
Throws:
SessionFactoryException

createSessions

public Session[] createSessions()
                         throws SessionFactoryException
Creates a list of all sessions available in the system

Specified by:
createSessions in class SessionFactory
Returns:
An array of Session objects
Throws:
SessionFactoryException

createSessions

public Session[] createSessions(int cardType)
Specified by:
createSessions in class SessionFactory


Copyright © 2005 Chang Sau Sheong, Thomas Tarpin-Lyonnet. All Rights Reserved.