Class MbeansDescriptorsDynamicMBeanSource


  • public class MbeansDescriptorsDynamicMBeanSource
    extends ModelerSource
    Extract metadata from a dynamic mbean. Used to wrap a dynamic mbean in order to implement persistence. This is really an ugly asspect of the JMX spec - we need to convery from normal metainfo to model metainfo. The info is the same, but they use a different class. Just like the DOM spec - where all implementations get an order of unneeded complexity from the various types.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String location  
      private static org.apache.commons.logging.Log log  
      (package private) java.util.List mbeans  
      (package private) Registry registry  
      (package private) java.lang.Object source  
      (package private) java.lang.String type  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ManagedBean createManagedBean​(Registry registry, java.lang.String domain, java.lang.Object realObj, java.lang.String type)
      XXX Find if the 'className' is the name of the MBean or the real class ( I suppose first ) XXX Read (optional) descriptions from a .properties, generated from source XXX Deal with constructors
      void execute()  
      java.util.List loadDescriptors​(Registry registry, java.lang.String location, java.lang.String type, java.lang.Object source)
      Load data, returns a list of items.
      void setLocation​(java.lang.String loc)  
      void setRegistry​(Registry reg)  
      void setSource​(java.lang.Object source)  
      void setType​(java.lang.String type)
      Used if a single component is loaded
      • Methods inherited from class java.lang.Object

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

      • log

        private static org.apache.commons.logging.Log log
      • location

        java.lang.String location
      • type

        java.lang.String type
      • source

        java.lang.Object source
      • mbeans

        java.util.List mbeans
    • Constructor Detail

      • MbeansDescriptorsDynamicMBeanSource

        public MbeansDescriptorsDynamicMBeanSource()
    • Method Detail

      • setRegistry

        public void setRegistry​(Registry reg)
      • setLocation

        public void setLocation​(java.lang.String loc)
      • setType

        public void setType​(java.lang.String type)
        Used if a single component is loaded
        Parameters:
        type -
      • setSource

        public void setSource​(java.lang.Object source)
      • loadDescriptors

        public java.util.List loadDescriptors​(Registry registry,
                                              java.lang.String location,
                                              java.lang.String type,
                                              java.lang.Object source)
                                       throws java.lang.Exception
        Description copied from class: ModelerSource
        Load data, returns a list of items.
        Overrides:
        loadDescriptors in class ModelerSource
        source - Introspected object or some other source
        Throws:
        java.lang.Exception
      • execute

        public void execute()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createManagedBean

        public ManagedBean createManagedBean​(Registry registry,
                                             java.lang.String domain,
                                             java.lang.Object realObj,
                                             java.lang.String type)
        XXX Find if the 'className' is the name of the MBean or the real class ( I suppose first ) XXX Read (optional) descriptions from a .properties, generated from source XXX Deal with constructors