private static class TestDriver.SimpleApplication extends Object implements Application
Modifier | Constructor and Description |
---|---|
private |
SimpleApplication() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method is called by the
ApplicationLoader after first calling Application.stop() , and all previous
DeactivatedContainer s have terminated. |
void |
start()
This method is called by the
ApplicationLoader just after creating this Application instance. |
void |
stop()
This method is called by the
ApplicationLoader after the corresponding signal has been issued by the
controlling start script. |
public void start()
Application
This method is called by the ApplicationLoader
just after creating this Application instance. Use this
method to start the Application's worker thread, and to activate a Container
. If you attempt to call
ContainerActivator.activateContainer(ContainerBuilder)
before this method is invoked, that call will
throw an ApplicationNotReadyException
. If this method does not throw an exception, the Application.stop()
method will be called at some time in the future.
start
in interface Application
public void stop()
Application
This method is called by the ApplicationLoader
after the corresponding signal has been issued by the
controlling start script. Once this method returns, all calls to ContainerActivator.activateContainer(ContainerBuilder)
will throw ApplicationNotReadyException
s. Use
this method to prepare for termination (see Application.destroy()
).
stop
in interface Application
public void destroy()
Application
This method is called by the ApplicationLoader
after first calling Application.stop()
, and all previous
DeactivatedContainer
s have terminated. Use this method to shut down all Application components such as
ClientProvider
s and ServerProvider
s.
destroy
in interface Application
Copyright © 2017. All rights reserved.