Class MbeansDescriptorsIntrospectionSource
- java.lang.Object
- 
- org.apache.tomcat.util.modeler.modules.ModelerSource
- 
- org.apache.tomcat.util.modeler.modules.MbeansDescriptorsIntrospectionSource
 
 
- 
 public class MbeansDescriptorsIntrospectionSource extends ModelerSource 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tomcat.util.modeler.modules.ModelerSourcesm, source
 
- 
 - 
Constructor SummaryConstructors Constructor Description MbeansDescriptorsIntrospectionSource()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedBeancreateManagedBean(Registry registry, java.lang.String domain, java.lang.Class<?> realClass, 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 constructorsvoidexecute()java.util.List<javax.management.ObjectName>loadDescriptors(Registry registry, java.lang.String type, java.lang.Object source)Load data, returns a list of items.voidsetRegistry(Registry reg)voidsetSource(java.lang.Object source)voidsetType(java.lang.String type)Used if a single component is loaded
 
- 
- 
- 
Method Detail- 
setRegistrypublic void setRegistry(Registry reg) 
 - 
setTypepublic void setType(java.lang.String type) Used if a single component is loaded- Parameters:
- type- The type
 
 - 
setSourcepublic void setSource(java.lang.Object source) 
 - 
loadDescriptorspublic 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:ModelerSourceLoad data, returns a list of items.- Specified by:
- loadDescriptorsin 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
 
 - 
executepublic void execute() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
createManagedBeanpublic ManagedBean createManagedBean(Registry registry, java.lang.String domain, java.lang.Class<?> realClass, 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- Parameters:
- registry- The Bean registry (not used)
- domain- The bean domain (not used)
- realClass- The class to analyze
- type- The bean type
- Returns:
- ManagedBean The create MBean
 
 
- 
 
-