本文整理了Java中org.apache.catalina.Lifecycle.stop()
方法的一些代码示例,展示了Lifecycle.stop()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Lifecycle.stop()
方法的具体详情如下:
包路径:org.apache.catalina.Lifecycle
类名称:Lifecycle
方法名:stop
[英]Gracefully terminate the active use of the public methods other than property getters/setters and life cycle methods of this component. Once the STOP_EVENT is fired, the public methods other than property getters/setters and life cycle methods should not be used. The following LifecycleEvents will be fired in the following order:
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
@Override
protected void stopInternal() throws LifecycleException {
if (sessionIdGenerator instanceof Lifecycle) {
((Lifecycle) sessionIdGenerator).stop();
}
}
代码示例来源:origin: org.glassfish.main.web/web-core
/**
* Stops the session manager of this Context.
*/
protected void managerStop() throws LifecycleException {
if ((manager != null) && (manager instanceof Lifecycle)) {
((Lifecycle) manager).stop();
}
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat6
public void doStop() throws Exception {
if (embedded instanceof Lifecycle) {
((Lifecycle)embedded).stop();
}
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
@Override
protected void stopInternal() throws LifecycleException {
if (sessionIdGenerator instanceof Lifecycle) {
((Lifecycle) sessionIdGenerator).stop();
}
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-tomcat6
public void doStop() throws Exception {
((Lifecycle)server).stop();
}
代码示例来源:origin: jboss.web/jbossweb
/**
* Stop an existing server instance.
*/
public void stop() {
// Shut down the server
if (server instanceof Lifecycle) {
try {
((Lifecycle) server).stop();
} catch (LifecycleException e) {
log.error("Catalina.stop", e);
}
}
}
代码示例来源:origin: org.jboss.web/jbossweb
public void stop() throws LifecycleException {
Iterator<RewriteMap> values = maps.values().iterator();
while (values.hasNext()) {
RewriteMap map = values.next();
if (map instanceof Lifecycle) {
((Lifecycle) map).stop();
}
}
maps.clear();
rules = null;
}
代码示例来源:origin: jboss.web/jbossweb
public void stop() throws LifecycleException {
Iterator<RewriteMap> values = maps.values().iterator();
while (values.hasNext()) {
RewriteMap map = values.next();
if (map instanceof Lifecycle) {
((Lifecycle) map).stop();
}
}
maps.clear();
rules = null;
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
@Override
protected synchronized void stopInternal() throws LifecycleException {
super.stopInternal();
for (RewriteMap map : maps.values()) {
if (map instanceof Lifecycle) {
((Lifecycle) map).stop();
}
}
maps.clear();
rules = null;
}
代码示例来源:origin: org.apache.tomee/tomee-catalina
@Override
public void stop() throws LifecycleException {
classLoader = delegate.getClassLoader();
if (delegate instanceof Lifecycle) {
((Lifecycle) delegate).stop();
}
}
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
@Override
protected synchronized void stopInternal() throws LifecycleException {
super.stopInternal();
for (RewriteMap map : maps.values()) {
if (map instanceof Lifecycle) {
((Lifecycle) map).stop();
}
}
maps.clear();
rules = null;
}
代码示例来源:origin: org.apache.tomee/tomee-catalina
@Override
public void stop() throws LifecycleException {
if (instance() != null && Lifecycle.class.isInstance(delegate)) {
Lifecycle.class.cast(delegate).stop();
}
state = LifecycleState.STOPPED;
}
代码示例来源:origin: codefollower/Tomcat-Research
@Override
protected synchronized void stopInternal() throws LifecycleException {
super.stopInternal();
Iterator<RewriteMap> values = maps.values().iterator();
while (values.hasNext()) {
RewriteMap map = values.next();
if (map instanceof Lifecycle) {
((Lifecycle) map).stop();
}
}
maps.clear();
rules = null;
}
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
/**
* Gracefully terminate the active use of the public methods of this
* component and implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that needs to be reported
*/
@Override
protected void stopInternal() throws LifecycleException {
// Stop this realm, then the sub-realms (reverse order to start)
super.stopInternal();
for (Realm realm : realms) {
if (realm instanceof Lifecycle) {
((Lifecycle) realm).stop();
}
}
}
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
/**
* Gracefully terminate the active use of the public methods of this
* component and implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that needs to be reported
*/
@Override
protected void stopInternal() throws LifecycleException {
// Stop this realm, then the sub-realms (reverse order to start)
super.stopInternal();
for (Realm realm : realms) {
if (realm instanceof Lifecycle) {
((Lifecycle) realm).stop();
}
}
}
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
/**
* Gracefully terminate the active use of the public methods of this
* component and implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that needs to be reported
*/
@Override
protected void stopInternal() throws LifecycleException {
// Stop this realm, then the sub-realms (reverse order to start)
super.stopInternal();
for (Realm realm : realms) {
if (realm instanceof Lifecycle) {
((Lifecycle) realm).stop();
}
}
}
代码示例来源:origin: codefollower/Tomcat-Research
/**
* Gracefully terminate the active use of the public methods of this
* component and implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that needs to be reported
*/
@Override
protected void stopInternal() throws LifecycleException {
// Stop this realm, then the sub-realms (reverse order to start)
super.stopInternal();
for (Realm realm : realms) {
if (realm instanceof Lifecycle) {
((Lifecycle) realm).stop();
}
}
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
/**
* Gracefully terminate the active use of the public methods of this
* component and implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that needs to be reported
*/
@Override
protected void stopInternal() throws LifecycleException {
// Stop this realm, then the sub-realms (reverse order to start)
super.stopInternal();
for (Realm realm : realms) {
if (realm instanceof Lifecycle) {
((Lifecycle) realm).stop();
}
}
}
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
/**
* Gracefully terminate the active use of the public methods of this
* component and implement the requirements of
* {@link org.apache.catalina.util.LifecycleBase#stopInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that needs to be reported
*/
@Override
protected void stopInternal() throws LifecycleException {
// Stop this realm, then the sub-realms (reverse order to start)
super.stopInternal();
for (Realm realm : realms) {
if (realm instanceof Lifecycle) {
((Lifecycle) realm).stop();
}
}
}
代码示例来源:origin: org.apache.tomee/tomee-catalina
@Override
protected void stopInternal() throws LifecycleException {
final Class<?> r = loadClass();
if (r != null && Lifecycle.class.isAssignableFrom(r) && instance() != null) {
Lifecycle.class.cast(instance()).stop();
}
setState(LifecycleState.STOPPING);
}
内容来源于网络,如有侵权,请联系作者删除!