UniJavaFactory
From Pickwiki
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]](); } }