org.eodisp.util
Class AppRegistry

java.lang.Object
  extended by org.eodisp.util.AppRegistry

public class AppRegistry
extends java.lang.Object

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.

Version:
$Id: AppRegistry.java 2094 2006-05-15 13:28:33Z ibirrer $
Author:
ibirrer
See Also:
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

AppRegistry

public AppRegistry()
Method Detail

registerRootApp

static void registerRootApp(RootApp rootApp)
This method is called by the root application's constructor.

Parameters:
rootApp - The root application to be registered

getRootApp

public static RootApp getRootApp()
Returns the only instance of the root application.

Returns:
The root application