net.xoetrope.xui
Interface XLifeCycleListener

All Known Implementing Classes:
DatabaseLifecycleListener

public interface XLifeCycleListener

An interface that allows applications to add to the startup and shutdown functionality.

Copyright (c) Xoetrope Ltd., 2002-2007

License: see License.txt


Method Summary
 boolean canClose(XProject project)
          Can the current project close?
 void initialize(XProject project)
          Called when the application/applet has been created and initialized.
 void shutdown()
          Called when the application/applet has been shutdown and is about to exit
 

Method Detail

initialize

void initialize(XProject project)
Called when the application/applet has been created and initialized.

Parameters:
project - the owner project

shutdown

void shutdown()
Called when the application/applet has been shutdown and is about to exit


canClose

boolean canClose(XProject project)
Can the current project close?

Parameters:
project - the project initiating the shutdown
Returns:
true if the application can close