|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaccal.SessionFactory
The SessionFactory creates sessions that bind to the card readers.
Session
,
JaccalPCSCSessionFactory
Field Summary | |
protected static SessionFactory |
instance
|
protected List |
readers
|
static List |
sessions
|
Constructor Summary | |
protected |
SessionFactory()
|
Method Summary | |
void |
addReader(Reader reader)
|
abstract Session |
createSession(String name)
Creates and returns a session based on the card in the reader. |
abstract Session |
createSession(String name,
int cardType)
Creates and returns a specific session object. |
abstract Session |
createSession(String name,
String reader)
Creates and returns a session object according to the type of card is in the reader |
abstract Session[] |
createSessions()
|
abstract Session[] |
createSessions(int cardType)
|
Reader[] |
getAllReaders()
|
static String[] |
getCardTypes()
List the card types implemented |
static SessionFactory |
getInstance()
Returns a singleton instance of the SessionFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static SessionFactory instance
public static List sessions
protected List readers
Constructor Detail |
protected SessionFactory() throws SessionFactoryException
Method Detail |
public abstract Session createSession(String name, String reader) throws SessionFactoryException
name
- reader
-
SessionFactoryException
public abstract Session createSession(String name) throws SessionFactoryException
name
-
SessionFactoryException
public abstract Session createSession(String name, int cardType) throws SessionFactoryException
name
- name of the sessioncardType
- type of card to be returned
SessionFactoryException
public abstract Session[] createSessions() throws SessionFactoryException
SessionFactoryException
public abstract Session[] createSessions(int cardType) throws SessionFactoryException
SessionFactoryException
public static SessionFactory getInstance() throws CardException
CardException
public static String[] getCardTypes() throws CardException
CardException
public void addReader(Reader reader)
public Reader[] getAllReaders()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |