本文整理了Java中org.apache.tomcat.util.modeler.Registry.resetMetadata
方法的一些代码示例,展示了Registry.resetMetadata
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Registry.resetMetadata
方法的具体详情如下:
包路径:org.apache.tomcat.util.modeler.Registry
类名称:Registry
方法名:resetMetadata
暂无
代码示例来源:origin: jboss.web/jbossweb
Registry.getRegistry(null, null).resetMetadata();
代码示例来源:origin: org.jboss.web/jbossweb
public void destroy() throws LifecycleException {
if( ! initialized ) return;
initialized=false;
// if we created it, make sure it's also destroyed
// this call implizit this.stop()
((StandardService)service).destroy();
if (org.apache.tomcat.util.Constants.ENABLE_MODELER) {
if ( oname != null ) {
try {
if( controller == oname ) {
Registry.getRegistry(null, null).unregisterComponent(oname);
}
} catch( Throwable t ) {
CatalinaLogger.CORE_LOGGER.failedContainerJmxUnregistration(oname, t);
}
}
// force all metadata to be reloaded.
// That doesn't affect existing beans. We should make it per
// registry - and stop using the static.
Registry.getRegistry(null, null).resetMetadata();
}
}
内容来源于网络,如有侵权,请联系作者删除!