| java.lang.Object ch.ethz.prose.RootComponent
RootComponent | public class RootComponent implements Component(Code) | | Class RootComponent looks for properties called
"ch.ethz.prose.ESSystem.X", where X is 0,1,2,..; If this
property is defined and represents a class name which
has two static methods with no parameters called startup
and teardown then the startup method is
called for this class. These methods should only throw
SystemStartupException or
SystemTeardownException respectively.
The class specified in the property has to implement the interface
Component .
Used Properties:
ch.ethz.prose.ESSystem.X
Values: A class name containing static startup and teardown methods.
Current possible values:
-
ch.ethz.prose.ExtensionViewerSystem
-
ch.ethz.prose.dist.JiniExtensionSystem
-
ch.ethz.prose.dist.RemoteExtensionSystem
Usage: controls aditional services to be started up together
with the ProseSystem itself. Note that X is
a placeholder for 1,2,3,..
version: $Revision: 1.1.1.1 $ author: Philippe Schoch |
Method Summary | |
public static synchronized void | startup() Search the property set for properies named
ch.ethz.prose.ESSystem.X , where X may be
0, 1, 2, ..etc. | public static synchronized void | teardown() Call every teardown method one by one of every started Component
in the order they are started.
If teardown methods should be called in the reverse order as the startup calls
simply set the flag reverseOrder to true . |
isStarted | static boolean isStarted(Code) | | |
reverseOrder | public static boolean reverseOrder(Code) | | |
RootComponent | protected RootComponent()(Code) | | |
startup | public static synchronized void startup() throws SystemStartupException(Code) | | Search the property set for properies named
ch.ethz.prose.ESSystem.X , where X may be
0, 1, 2, ..etc.
If the values of the properties denote classnames and
each of the classNames has a method called startup throwing
a ExtensionSystemStartupException and a method called teardown
throwing a ExtensionSystemTeardownException then this startup
method is executed.
|
teardown | public static synchronized void teardown() throws SystemTeardownException(Code) | | Call every teardown method one by one of every started Component
in the order they are started.
If teardown methods should be called in the reverse order as the startup calls
simply set the flag reverseOrder to true . By default this flag is set to
false .
|
|
|