|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectautohit.universe.UniverseFactory
Universe factory. This builds universe services. All the functions are thread-safe, however it will not keep one thread from destroying another thread's universe. This is *NOT* a singleton. There are four types of universes: UNI_LOCAL Local file system UNI_MASTER NOT IMPLIMENTED! UNI_MIRROR NOT IMPLIMENTED! UNI_REMOTE NOT IMPLIMENTED! Regardless of what kind of universe, there must be a local property file that describes the universe. The factory will use it to build a server for that universe.
EPG - New - 23Apr03
Constructor Summary | |
UniverseFactory()
Constructor. |
Method Summary | |
Universe |
create(java.lang.String handle,
java.io.InputStream prop)
Create a valid, working universe service |
Universe |
create(java.lang.String handle,
java.lang.String prop)
Create a valid, working universe service |
void |
destroy(java.lang.String name)
Destroy a universe server |
boolean |
exists(java.lang.String name)
Returns true if the named universe service exists. |
Universe |
reference(java.lang.String name)
Get a reference to a valid, working universe service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UniverseFactory()
Method Detail |
public boolean exists(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public Universe reference(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public void destroy(java.lang.String name) throws UniverseException
name
- universe name
UniverseException
public Universe create(java.lang.String handle, java.lang.String prop) throws UniverseException
handle
- handle to the universe. non-unique handle will overwrite a refernce to an existing universe service.prop
- a path to the local universe property file
UniverseException
public Universe create(java.lang.String handle, java.io.InputStream prop) throws UniverseException
handle
- handle to the universe. non-unique handle will overwrite a refernce to an existing universe service.prop
- a path to the local universe property file
UniverseException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |