本文整理了Java中org.restlet.Application.isStopped()
方法的一些代码示例,展示了Application.isStopped()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.isStopped()
方法的具体详情如下:
包路径:org.restlet.Application
类名称:Application
方法名:isStopped
暂无
代码示例来源:origin: org.restlet/org.restlet.ext.servlet
@Override
public void init() throws ServletException {
if ((getComponent() != null)) {
if ((getApplication() != null) && (getApplication().isStopped())) {
try {
getApplication().start();
} catch (Exception e) {
log("Error during the starting of the Restlet Application",
e);
}
}
}
}
代码示例来源:origin: com.noelios.restlet/com.noelios.restlet.ext.servlet
@Override
public void init() throws ServletException {
if ((getComponent() != null)) {
if ((getApplication() != null) && (getApplication().isStopped())) {
try {
getApplication().start();
} catch (Exception e) {
log("Error during the starting of the Restlet Application",
e);
}
}
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Starts the application, all the enabled associated services then the
* inbound and outbound roots.
*/
@Override
public synchronized void start() throws Exception {
if (isStopped()) {
if (isDebugging()) {
getLogger().log(
Level.INFO,
"Starting " + getClass().getName()
+ " application in debug mode");
} else {
getLogger().log(Level.INFO,
"Starting " + getClass().getName() + " application");
}
if (getHelper() != null) {
getHelper().start();
}
getServices().start();
if (getInboundRoot() != null) {
getInboundRoot().start();
}
if (getOutboundRoot() != null) {
getOutboundRoot().start();
}
// Must be invoked as a last step
super.start();
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
if (result && application.isStopped()) {
application.start();
代码示例来源:origin: org.restlet/org.restlet
if (isStopped()) {
super.start();
内容来源于网络,如有侵权,请联系作者删除!