|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--stomp.util.AbstractFactory
base class for factories which support runtime class hierarchy definitions. That is, the exact classes which handle any particular function call are specified in runtime prefs, and instantiated dynamically at runtime. note that, although there is no way to enforce this in java, AbstractFactory requires that all of its subclasses have a no-args constructor. Failure to implement this method will result in RuntimeExceptions from the singleton method.
Constructor Summary | |
AbstractFactory()
|
Method Summary | |
static java.lang.Object |
singletonFactory(java.lang.String prefName)
looks up the factory inheritance hierarchy specified by the given pref and instantiates the needed factories. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractFactory()
Method Detail |
public static java.lang.Object singletonFactory(java.lang.String prefName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |