UniJavaFactory

From Pickwiki
Revision as of 23:48, 26 February 2015 by Conversion script (talk) (link fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
import asjava.uniobjects.[[UniJava]];

/**
 * Factory for a singleton [[UniJava]] instance
 * @author    Wendy Smoak
 */
public class [[UniJavaFactory]]
{

   private static [[UniJava]] theInstance = new [[UniJava]]();

   /**
    * cannot be instantiated
   */
   private [[UniJavaFactory]]() { }


   /**
    * @return the singleton [[UniJava]] instance
    */
   public static [[UniJava]] getInstance()
   {
      return theInstance;
   }
   
   public static int get[[NumSessions]] () 
   {
      return theInstance.get[[NumSessions]]();
   }

}