com.inxar.syntacs.util
Class Mission

java.lang.Object
  |
  +--com.inxar.syntacs.util.Mission

public class Mission
extends Object

"Mission Control" holds the global Session instance which is consulted throughout the API.


Constructor Summary
Mission()
           
 
Method Summary
static Session control()
          Gets the global Session instance.
static void control(Session session)
          Sets the global Session to the given instance.
static void deactivate()
          Closes and nullifies the current Session instance.
static boolean isActivated()
          Returns true if the Session instance has been set (is not null).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mission

public Mission()
Method Detail

control

public static void control(Session session)
Sets the global Session to the given instance.

control

public static Session control()
Gets the global Session instance.

isActivated

public static boolean isActivated()
Returns true if the Session instance has been set (is not null).

deactivate

public static void deactivate()
Closes and nullifies the current Session instance.