|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eodisp.util.AppRegistry
public class AppRegistry
This class gives access to the root application (RootApp
)
as a singleton. The root application registers itself at creation time.
Trying to register a second time results in a AssertionException
.
Use the getRootApp()
to get a reference of the root application at
any time.
RootApp
Constructor Summary | |
---|---|
AppRegistry()
|
Method Summary | |
---|---|
static RootApp |
getRootApp()
Returns the only instance of the root application. |
(package private) static void |
registerRootApp(RootApp rootApp)
This method is called by the root application's constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppRegistry()
Method Detail |
---|
static void registerRootApp(RootApp rootApp)
rootApp
- The root application to be registeredpublic static RootApp getRootApp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |