ModelerSource (Apache Tomcat 11.0.23 API Documentation)
Description: declaration: package: org.apache.tomcat.util.modeler.modules, class: ModelerSource

# Class ModelerSource

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

Direct Known Subclasses:
  `MbeansDescriptorsDigesterSource, MbeansDescriptorsIntrospectionSource`

public abstract class ModelerSource extends Object
Source for descriptor data. More sources can be added.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected static final StringManager`
  `sm`
  The string manager for this class.
  `protected Object`
  `source`
  The source object.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ModelerSource()`
  Default constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract List<ObjectName>`
  `loadDescriptors(Registry registry, String type, Object source)`
  Load data, returns a list of items.

  ### Methods inherited from class Object

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

- ## Field Details

  - ### sm

    protected static final StringManager sm
    The string manager for this class.

  - ### source

    protected Object source
    The source object.

- ## Constructor Details

  - ### ModelerSource

    public ModelerSource()
    Default constructor.

- ## Method Details

  - ### loadDescriptors

    public abstract List<ObjectName> loadDescriptors(Registry registry, String type, Object source) throws Exception
    Load data, returns a list of items.
    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