Package org.tn5250j.framework.common
Class SessionManager
- java.lang.Object
-
- org.tn5250j.framework.common.SessionManager
-
- All Implemented Interfaces:
SessionManagerInterface
public class SessionManager extends java.lang.Object implements SessionManagerInterface
The SessionManager is the central repository for access to all sessions. The SessionManager contains a list of all Session objects available.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSessionManager()The constructor is made protected to allow overriding.
-
Method Summary
Modifier and Type Method Description voidcloseSession(SessionPanel sesspanel)SessionsgetSessions()static SessionManagerinstance()Session5250openSession(java.util.Properties sesProps, java.lang.String configurationResource, java.lang.String sessionName)
-
-
-
Method Detail
-
instance
public static SessionManager instance()
- Returns:
- The unique instance of this class.
-
getSessions
public Sessions getSessions()
- Specified by:
getSessionsin interfaceSessionManagerInterface- Returns:
- sessions
-
closeSession
public void closeSession(SessionPanel sesspanel)
- Specified by:
closeSessionin interfaceSessionManagerInterface- Parameters:
sesspanel- a panel object
-
openSession
public Session5250 openSession(java.util.Properties sesProps, java.lang.String configurationResource, java.lang.String sessionName)
- Specified by:
openSessionin interfaceSessionManagerInterface- Parameters:
sesProps- propertiesconfigurationResource- a configurationsessionName- a session name- Returns:
- 5250 session object
-
-