org.apache.tomcat.util.modeler.Registry.resetMetadata()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中org.apache.tomcat.util.modeler.Registry.resetMetadata方法的一些代码示例,展示了Registry.resetMetadata的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Registry.resetMetadata方法的具体详情如下:
包路径:org.apache.tomcat.util.modeler.Registry
类名称:Registry
方法名:resetMetadata

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();
  }        
}

相关文章