prolog.model
Class SingletonFactory

java.lang.Object
  |
  +--prolog.model.SingletonFactory

public class SingletonFactory
extends java.lang.Object


Field Summary
protected  IProgramBuilder builder
          the concrete builder
protected static SingletonFactory gvInstance
          the singleton instance
 
Constructor Summary
private SingletonFactory()
          constructor
 
Method Summary
static IProgramBuilder getBuilder()
          returns the builder
static SingletonFactory getInstance()
          returns the singleton instance
 void registerBuilder(IProgramBuilder b)
          sets the program builder
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

gvInstance

protected static SingletonFactory gvInstance
the singleton instance

builder

protected IProgramBuilder builder
the concrete builder
Constructor Detail

SingletonFactory

private SingletonFactory()
constructor
Method Detail

getInstance

public static SingletonFactory getInstance()
returns the singleton instance

registerBuilder

public void registerBuilder(IProgramBuilder b)
sets the program builder

getBuilder

public static IProgramBuilder getBuilder()
returns the builder