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

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

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

Registry.loadDescriptors介绍

[英]Load the registry from the XML input found in the specified input stream.
[中]从指定输入流中找到的XML输入加载注册表。

代码示例

代码示例来源:origin: jboss.web/jbossweb

/** Load descriptors. The source can be a File or URL or InputStream for the 
 * descriptors file. In the case of File and URL, if the extension is ".ser"
 * a serialized version will be loaded. 
 * 
 * This method should be used to explicitely load metadata - but this is not
 * required in most cases. The registerComponent() method will find metadata
 * in the same pacakge.
 * 
 * @param source
 */ 
public void loadMetadata(Object source ) throws Exception {
  loadDescriptors( null, source, null );
}

代码示例来源:origin: jboss.web/jbossweb

/**
 * Load the registry from the XML input found in the specified input
 * stream.
 *
 * @param source Source to be used to load. Can be an InputStream or URL.
 *
 * @exception Exception if any parsing or processing error occurs
 */
public void loadDescriptors( Object source )
    throws Exception
{
  loadDescriptors("MbeansDescriptorsDOMSource", source, null );
}

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Load the registry from the XML input found in the specified input
 * stream.
 *
 * @param source Source to be used to load. Can be an InputStream or URL.
 *
 * @exception Exception if any parsing or processing error occurs
 */
public void loadDescriptors( Object source )
    throws Exception
{
  loadDescriptors("MbeansDescriptorsDOMSource", source, null );
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/** Load descriptors. The source can be a File or URL or InputStream for the 
 * descriptors file. In the case of File and URL, if the extension is ".ser"
 * a serialized version will be loaded. 
 * 
 * This method should be used to explicitly load metadata - but this is not
 * required in most cases. The registerComponent() method will find metadata
 * in the same package.
 * 
 * @param source
 */ 
public void loadMetadata(Object source ) throws Exception {
  loadDescriptors( null, source, null );
}

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

/** Load descriptors. The source can be a File or URL or InputStream for the 
 * descriptors file. In the case of File and URL, if the extension is ".ser"
 * a serialized version will be loaded. 
 * 
 * This method should be used to explicitely load metadata - but this is not
 * required in most cases. The registerComponent() method will find metadata
 * in the same pacakge.
 * 
 * @param source
 */ 
public void loadMetadata(Object source ) throws Exception {
  loadDescriptors( null, source, null );
}

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

/**
 * Load the registry from the XML input found in the specified input
 * stream.
 *
 * @param source Source to be used to load. Can be an InputStream or URL.
 *
 * @exception Exception if any parsing or processing error occurs
 */
public void loadDescriptors( Object source )
    throws Exception
{
  loadDescriptors("MbeansDescriptorsDigesterSource", source, null );
}

代码示例来源:origin: org.jboss.web/jbossweb

/** Load descriptors. The source can be a File or URL or InputStream for the 
 * descriptors file. In the case of File and URL, if the extension is ".ser"
 * a serialized version will be loaded. 
 * 
 * This method should be used to explicitely load metadata - but this is not
 * required in most cases. The registerComponent() method will find metadata
 * in the same pacakge.
 * 
 * @param source
 */ 
public void loadMetadata(Object source ) throws Exception {
  loadDescriptors( null, source, null );
}

代码示例来源:origin: org.apache.coyote/com.springsource.org.apache.coyote

/** Load descriptors. The source can be a File or URL or InputStream for the 
 * descriptors file. In the case of File and URL, if the extension is ".ser"
 * a serialized version will be loaded. 
 * 
 * This method should be used to explicitly load metadata - but this is not
 * required in most cases. The registerComponent() method will find metadata
 * in the same package.
 * 
 * @param source
 */ 
@Override
public void loadMetadata(Object source ) throws Exception {
  loadDescriptors( null, source, null );
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/util

/** Load descriptors. The source can be a File or URL or InputStream for the 
 * descriptors file. In the case of File and URL, if the extension is ".ser"
 * a serialized version will be loaded. 
 * 
 * This method should be used to explicitly load metadata - but this is not
 * required in most cases. The registerComponent() method will find metadata
 * in the same package.
 * 
 * @param source
 */ 
@Override
public void loadMetadata(Object source ) throws Exception {
  loadDescriptors( null, source, null );
}

代码示例来源:origin: jboss.web/jbossweb

/**
   * Load the registry from a cached .ser file. This is typically 2-3 times
   * faster than parsing the XML.
   *
   * @param source Source to be used to load. Can be an InputStream or URL.
   *
   * @exception Exception if any parsing or processing error occurs
   * @deprecated Loaded automatically or using a File or Url ending in .ser
   */
  public void loadCachedDescriptors( Object source )
      throws Exception
  {
    loadDescriptors("MbeansDescriptorsSerSource", source, null );
  }
}

代码示例来源:origin: org.jboss.web/jbossweb

/**
   * Load the registry from a cached .ser file. This is typically 2-3 times
   * faster than parsing the XML.
   *
   * @param source Source to be used to load. Can be an InputStream or URL.
   *
   * @exception Exception if any parsing or processing error occurs
   * @deprecated Loaded automatically or using a File or Url ending in .ser
   */
  public void loadCachedDescriptors( Object source )
      throws Exception
  {
    loadDescriptors("MbeansDescriptorsSerSource", source, null );
  }
}

代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource

/**
   * Load the registry from a cached .ser file. This is typically 2-3 times
   * faster than parsing the XML.
   *
   * @param source Source to be used to load. Can be an InputStream or URL.
   *
   * @exception Exception if any parsing or processing error occurs
   * @deprecated Loaded automatically or using a File or Url ending in .ser
   */
  public void loadCachedDescriptors( Object source )
      throws Exception
  {
    loadDescriptors("MbeansDescriptorsSerSource", source, null );
  }
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Create and configure (if necessary) and return the registry of
 * managed object descriptions.
 */
public static synchronized Registry createRegistry() {
  if (registry == null) {
    registry = Registry.getRegistry(null, null);
    ClassLoader cl = MBeanUtils.class.getClassLoader();
    registry.loadDescriptors("org.apache.catalina.mbeans",  cl);
    registry.loadDescriptors("org.apache.catalina.authenticator", cl);
    registry.loadDescriptors("org.apache.catalina.core", cl);
    registry.loadDescriptors("org.apache.catalina", cl);
    registry.loadDescriptors("org.apache.catalina.deploy", cl);
    registry.loadDescriptors("org.apache.catalina.loader", cl);
    registry.loadDescriptors("org.apache.catalina.realm", cl);
    registry.loadDescriptors("org.apache.catalina.session", cl);
    registry.loadDescriptors("org.apache.catalina.startup", cl);
    registry.loadDescriptors("org.apache.catalina.users", cl);
    registry.loadDescriptors("org.apache.catalina.ha", cl);
    registry.loadDescriptors("org.apache.catalina.connector", cl);
    registry.loadDescriptors("org.apache.catalina.valves",  cl);
  }
  return (registry);
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Create and configure (if necessary) and return the registry of
 * managed object descriptions.
 */
public static synchronized Registry createRegistry() {
  if (registry == null) {
    registry = Registry.getRegistry(null, null);
    ClassLoader cl=ServerLifecycleListener.class.getClassLoader();
    registry.loadDescriptors("org.apache.catalina.mbeans",  cl);
    registry.loadDescriptors("org.apache.catalina.authenticator", cl);
    registry.loadDescriptors("org.apache.catalina.core", cl);
    registry.loadDescriptors("org.apache.catalina", cl);
    registry.loadDescriptors("org.apache.catalina.deploy", cl);
    registry.loadDescriptors("org.apache.catalina.loader", cl);
    registry.loadDescriptors("org.apache.catalina.realm", cl);
    registry.loadDescriptors("org.apache.catalina.session", cl);
    registry.loadDescriptors("org.apache.catalina.startup", cl);
    registry.loadDescriptors("org.apache.catalina.users", cl);
    registry.loadDescriptors("org.apache.catalina.ha", cl);
    registry.loadDescriptors("org.apache.catalina.connector", cl);
    registry.loadDescriptors("org.apache.catalina.valves",  cl);
  }
  return (registry);
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Create and configure (if necessary) and return the registry of
 * managed object descriptions.
 */
public static synchronized Registry createRegistry() {
  if (registry == null) {
    registry = Registry.getRegistry(null, null);
    ClassLoader cl=ServerLifecycleListener.class.getClassLoader();
    registry.loadDescriptors("org.apache.catalina.mbeans",  cl);
    registry.loadDescriptors("org.apache.catalina.authenticator", cl);
    registry.loadDescriptors("org.apache.catalina.core", cl);
    registry.loadDescriptors("org.apache.catalina", cl);
    registry.loadDescriptors("org.apache.catalina.deploy", cl);
    registry.loadDescriptors("org.apache.catalina.loader", cl);
    registry.loadDescriptors("org.apache.catalina.realm", cl);
    registry.loadDescriptors("org.apache.catalina.session", cl);
    registry.loadDescriptors("org.apache.catalina.startup", cl);
    registry.loadDescriptors("org.apache.catalina.users", cl);
    registry.loadDescriptors("org.apache.catalina.ha", cl);
    registry.loadDescriptors("org.apache.catalina.connector", cl);
    registry.loadDescriptors("org.apache.catalina.valves",  cl);
  }
  return (registry);
}

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

/**
 * Create and configure (if necessary) and return the registry of
 * managed object descriptions.
 * @return the singleton registry
 */
public static synchronized Registry createRegistry() {
  if (registry == null) {
    registry = Registry.getRegistry(null, null);
    ClassLoader cl = MBeanUtils.class.getClassLoader();
    registry.loadDescriptors("org.apache.catalina.mbeans",  cl);
    registry.loadDescriptors("org.apache.catalina.authenticator", cl);
    registry.loadDescriptors("org.apache.catalina.core", cl);
    registry.loadDescriptors("org.apache.catalina", cl);
    registry.loadDescriptors("org.apache.catalina.deploy", cl);
    registry.loadDescriptors("org.apache.catalina.loader", cl);
    registry.loadDescriptors("org.apache.catalina.realm", cl);
    registry.loadDescriptors("org.apache.catalina.session", cl);
    registry.loadDescriptors("org.apache.catalina.startup", cl);
    registry.loadDescriptors("org.apache.catalina.users", cl);
    registry.loadDescriptors("org.apache.catalina.ha", cl);
    registry.loadDescriptors("org.apache.catalina.connector", cl);
    registry.loadDescriptors("org.apache.catalina.valves",  cl);
    registry.loadDescriptors("org.apache.catalina.storeconfig",  cl);
    registry.loadDescriptors("org.apache.tomcat.util.descriptor.web",  cl);
  }
  return registry;
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Create and configure (if necessary) and return the registry of
 * managed object descriptions.
 */
public static synchronized Registry createRegistry() {
  if (registry == null) {
    registry = Registry.getRegistry(null, null);
    ClassLoader cl = MBeanUtils.class.getClassLoader();
    registry.loadDescriptors("org.apache.catalina.mbeans",  cl);
    registry.loadDescriptors("org.apache.catalina.authenticator", cl);
    registry.loadDescriptors("org.apache.catalina.core", cl);
    registry.loadDescriptors("org.apache.catalina", cl);
    registry.loadDescriptors("org.apache.catalina.deploy", cl);
    registry.loadDescriptors("org.apache.catalina.loader", cl);
    registry.loadDescriptors("org.apache.catalina.realm", cl);
    registry.loadDescriptors("org.apache.catalina.session", cl);
    registry.loadDescriptors("org.apache.catalina.startup", cl);
    registry.loadDescriptors("org.apache.catalina.users", cl);
    registry.loadDescriptors("org.apache.catalina.ha", cl);
    registry.loadDescriptors("org.apache.catalina.connector", cl);
    registry.loadDescriptors("org.apache.catalina.valves",  cl);
  }
  return (registry);
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Create and configure (if necessary) and return the registry of
 * managed object descriptions.
 */
public static synchronized Registry createRegistry() {
  if (registry == null) {
    registry = Registry.getRegistry(null, null);
    ClassLoader cl=ServerLifecycleListener.class.getClassLoader();
    registry.loadDescriptors("org.apache.catalina.mbeans",  cl);
    registry.loadDescriptors("org.apache.catalina.authenticator", cl);
    registry.loadDescriptors("org.apache.catalina.core", cl);
    registry.loadDescriptors("org.apache.catalina", cl);
    registry.loadDescriptors("org.apache.catalina.deploy", cl);
    registry.loadDescriptors("org.apache.catalina.loader", cl);
    registry.loadDescriptors("org.apache.catalina.realm", cl);
    registry.loadDescriptors("org.apache.catalina.session", cl);
    registry.loadDescriptors("org.apache.catalina.startup", cl);
    registry.loadDescriptors("org.apache.catalina.users", cl);
    registry.loadDescriptors("org.apache.catalina.ha", cl);
    registry.loadDescriptors("org.apache.catalina.connector", cl);
    registry.loadDescriptors("org.apache.catalina.valves",  cl);
  }
  return (registry);
}

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Create and configure (if necessary) and return the registry of
 * managed object descriptions.
 */
public static synchronized Registry createRegistry() {
  if (registry == null) {
    registry = Registry.getRegistry(null, null);
    ClassLoader cl = MBeanUtils.class.getClassLoader();
    registry.loadDescriptors("org.apache.catalina.mbeans",  cl);
    registry.loadDescriptors("org.apache.catalina.authenticator", cl);
    registry.loadDescriptors("org.apache.catalina.core", cl);
    registry.loadDescriptors("org.apache.catalina", cl);
    registry.loadDescriptors("org.apache.catalina.deploy", cl);
    registry.loadDescriptors("org.apache.catalina.loader", cl);
    registry.loadDescriptors("org.apache.catalina.realm", cl);
    registry.loadDescriptors("org.apache.catalina.session", cl);
    registry.loadDescriptors("org.apache.catalina.startup", cl);
    registry.loadDescriptors("org.apache.catalina.users", cl);
    registry.loadDescriptors("org.apache.catalina.ha", cl);
    registry.loadDescriptors("org.apache.catalina.connector", cl);
    registry.loadDescriptors("org.apache.catalina.valves",  cl);
    registry.loadDescriptors("org.apache.catalina.storeconfig",  cl);
    registry.loadDescriptors("org.apache.tomcat.util.descriptor.web",  cl);
  }
  return (registry);
}

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Create and configure (if necessary) and return the registry of
 * managed object descriptions.
 * @return the singleton registry
 */
public static synchronized Registry createRegistry() {
  if (registry == null) {
    registry = Registry.getRegistry(null, null);
    ClassLoader cl = MBeanUtils.class.getClassLoader();
    registry.loadDescriptors("org.apache.catalina.mbeans",  cl);
    registry.loadDescriptors("org.apache.catalina.authenticator", cl);
    registry.loadDescriptors("org.apache.catalina.core", cl);
    registry.loadDescriptors("org.apache.catalina", cl);
    registry.loadDescriptors("org.apache.catalina.deploy", cl);
    registry.loadDescriptors("org.apache.catalina.loader", cl);
    registry.loadDescriptors("org.apache.catalina.realm", cl);
    registry.loadDescriptors("org.apache.catalina.session", cl);
    registry.loadDescriptors("org.apache.catalina.startup", cl);
    registry.loadDescriptors("org.apache.catalina.users", cl);
    registry.loadDescriptors("org.apache.catalina.ha", cl);
    registry.loadDescriptors("org.apache.catalina.connector", cl);
    registry.loadDescriptors("org.apache.catalina.valves",  cl);
    registry.loadDescriptors("org.apache.catalina.storeconfig",  cl);
    registry.loadDescriptors("org.apache.tomcat.util.descriptor.web",  cl);
  }
  return registry;
}

相关文章