Class MbeansDescriptorsDynamicMBeanSource
java.lang.Object
org.apache.commons.modeler.modules.ModelerSource
org.apache.commons.modeler.modules.MbeansDescriptorsDynamicMBeanSource
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateManagedBean(Registry registry, String domain, Object realObj, 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 constructorsvoidexecute()loadDescriptors(Registry registry, String location, String type, Object source) Load data, returns a list of items.voidsetLocation(String loc) voidsetRegistry(Registry reg) voidvoidUsed if a single component is loadedMethods inherited from class org.apache.commons.modeler.modules.ModelerSource
getInputStream, store, updateField
-
Field Details
-
Constructor Details
-
MbeansDescriptorsDynamicMBeanSource
public MbeansDescriptorsDynamicMBeanSource()
-
-
Method Details
-
setRegistry
-
setLocation
-
setType
Used if a single component is loaded- Parameters:
type-
-
setSource
-
loadDescriptors
public List loadDescriptors(Registry registry, String location, String type, Object source) throws Exception Description copied from class:ModelerSourceLoad data, returns a list of items.- Overrides:
loadDescriptorsin classModelerSource- Parameters:
registry-location-type-source- Introspected object or some other source- Throws:
Exception
-
execute
- Throws:
Exception
-
createManagedBean
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
-