|
||||||||||
| HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register |
LifeCycleListener=com.mycompany.myproject.MyProjectInitializer
package com.mycompany.myproject;
import net.xoetrope.xui.XLifeCycleListener;
import net.xoetrope.xui.XProject;
/**
* Initialize the project's connection
*/
public class MyProjectInitializerimplements XLifeCycleListener
{
/**
* Called when the application/applet has been created and initialized.
* @param project the owner project
*/
public void initialize( XProject project )
{
// Setup connections, etc... here
}
/**
* Called when the application/applet has been shutdown and is about to exit
*/
public void shutdown()
{
// Release resources, connections, etc... here
}
}