Class MbeansDescriptorsDigesterSource


  • public class MbeansDescriptorsDigesterSource
    extends ModelerSource
    Source for loading MBean descriptors from XML using a Digester.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      Execute the descriptor loading.
      java.util.List<javax.management.ObjectName> loadDescriptors​(Registry registry, java.lang.String type, java.lang.Object source)
      Load data, returns a list of items.
      void setRegistry​(Registry reg)
      Set the registry.
      void setSource​(java.lang.Object source)
      Set the source.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MbeansDescriptorsDigesterSource

        public MbeansDescriptorsDigesterSource()
        Default constructor.
    • Method Detail

      • setRegistry

        public void setRegistry​(Registry reg)
        Set the registry.
        Parameters:
        reg - the registry to set
      • setSource

        public void setSource​(java.lang.Object source)
        Set the source.
        Parameters:
        source - the source to set
      • loadDescriptors

        public java.util.List<javax.management.ObjectName> loadDescriptors​(Registry registry,
                                                                           java.lang.String type,
                                                                           java.lang.Object source)
                                                                    throws java.lang.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:
        java.lang.Exception - Error loading descriptors
      • execute

        public void execute()
                     throws java.lang.Exception
        Execute the descriptor loading.
        Throws:
        java.lang.Exception - if an error occurs