本文整理了Java中org.jbundle.thin.base.util.Application.free()
方法的一些代码示例,展示了Application.free()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.free()
方法的具体详情如下:
包路径:org.jbundle.thin.base.util.Application
类名称:Application
方法名:free
暂无
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Remove this task or session to my parent application.
* @param bFreeIfDone If true and the application is empty, free the application.
*/
public void removeFromApplication(boolean bFreeIfDone)
{
if (m_application == null)
return; // In free.
Application app = m_application;
m_application = null;
boolean bEmptyTaskList = app.removeTask(this); // Remove this session from the list
if (bFreeIfDone)
if (bEmptyTaskList)
app.free(); // No more tasks -> Quit app!
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
@Override
public void serviceChanged(ServiceEvent event) {
if (event.getType() == ServiceEvent.REGISTERED)
{ // Osgi Service is up, Okay to start the server
if (application == null)
{
BundleContext context = event.getServiceReference().getBundle().getBundleContext();
this.checkDependentServicesAndStartup(context, EnvironmentActivator.class.getName());
}
}
if (event.getType() == ServiceEvent.UNREGISTERING)
{
if (application != null)
application.free();
application = null;
}
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
@Override
public void serviceChanged(ServiceEvent event) {
if (event.getType() == ServiceEvent.REGISTERED)
{ // Osgi Service is up, Okay to start the server
if (application == null)
{
BundleContext context = event.getServiceReference().getBundle().getBundleContext();
this.checkDependentServicesAndStartup(context, EnvironmentActivator.class.getName());
}
}
if (event.getType() == ServiceEvent.UNREGISTERING)
{
if (application != null)
application.free();
application = null;
}
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Free all the resources belonging to this applet. If all applet screens are closed, shut down the applet.
*/
public void free()
{
if (m_env != null)
{
m_env.removeApplication(this);
m_env.freeIfDone();
}
super.free();
if (m_databaseCollection != null)
m_databaseCollection.free();
m_databaseCollection = null;
m_env = null;
m_resources = null;
}
/**
内容来源于网络,如有侵权,请联系作者删除!