MbeansDescriptorsDigesterSource (Apache Tomcat 7.0.103 API Documentation)

org.apache.tomcat.util.modeler.modules

## Class MbeansDescriptorsDigesterSource

- java.lang.Object
- - org.apache.tomcat.util.modeler.modules.ModelerSource
  - - org.apache.tomcat.util.modeler.modules.MbeansDescriptorsDigesterSource

-     public class MbeansDescriptorsDigesterSource
      extends ModelerSource

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static Digester` | `digester`

    - ### Fields inherited from class org.apache.tomcat.util.modeler.modules.ModelerSource

      `location, sm, source`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MbeansDescriptorsDigesterSource()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected static Digester` | `createDigester()`
    `void` | `execute()`
    `List<ObjectName>` | `loadDescriptors(Registry registry, String type, Object source)` Load data, returns a list of items.
    `void` | `setLocation(String loc)` Deprecated. Unused. Will be removed in Tomcat 8.0.x
    `void` | `setRegistry(Registry reg)`
    `void` | `setSource(Object source)`
    `void` | `setType(String type)` Used if a single component is loaded

    - ### Methods inherited from class org.apache.tomcat.util.modeler.modules.ModelerSource

      `getInputStream, loadDescriptors, store, updateField`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### digester

          protected static volatile Digester digester

  - ### Constructor Detail

    - #### MbeansDescriptorsDigesterSource

          public MbeansDescriptorsDigesterSource()

  - ### Method Detail

    - #### createDigester

          protected static Digester createDigester()

    - #### setRegistry

          public void setRegistry(Registry reg)

    - #### setLocation

          @Deprecated
          public void setLocation(String loc)

      Deprecated. Unused. Will be removed in Tomcat 8.0.x

    - #### setType

          public void setType(String type)

      Used if a single component is loaded
      Parameters:
        `type` -

    - #### setSource

          public void setSource(Object source)

    - #### loadDescriptors

          public List<ObjectName> loadDescriptors(Registry registry,
                                         String type,
                                         Object source)
                                           throws Exception

      Description copied from class: `ModelerSource`
      Load data, returns a list of items.
      Specified by:
        `loadDescriptors` in class `ModelerSource`
      Parameters:
        `registry` - The registry
        `type` - The bean registry type
        `source` - Introspected object or some other source
      Returns:
        a list of object names
      Throws:
        `Exception` - Error loading descriptors

    - #### execute

          public void execute()
                       throws Exception

      Throws:
        `Exception`

Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.