Class MbeansDescriptorsDynamicMBeanSource
- java.lang.Object
-
- org.apache.commons.modeler.modules.ModelerSource
-
- org.apache.commons.modeler.modules.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.
-
-
Constructor Summary
Constructors Constructor Description MbeansDescriptorsDynamicMBeanSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedBean
createManagedBean(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 constructorsvoid
execute()
List
loadDescriptors(Registry registry, String location, String type, Object source)
Load data, returns a list of items.void
setLocation(String loc)
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.commons.modeler.modules.ModelerSource
getInputStream, store, updateField
-
-
-
-
Method Detail
-
setRegistry
public void setRegistry(Registry reg)
-
setLocation
public void setLocation(String loc)
-
setType
public void setType(String type)
Used if a single component is loaded- Parameters:
type
-
-
setSource
public void setSource(Object source)
-
loadDescriptors
public List loadDescriptors(Registry registry, String location, String type, Object source) throws Exception
Description copied from class:ModelerSource
Load data, returns a list of items.- Overrides:
loadDescriptors
in classModelerSource
source
- Introspected object or some other source- Throws:
Exception
-
createManagedBean
public ManagedBean createManagedBean(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 constructors
-
-