Class MbeansDescriptorsIntrospectionSource
- java.lang.Object
-
- org.apache.commons.modeler.modules.ModelerSource
-
- org.apache.commons.modeler.modules.MbeansDescriptorsIntrospectionSource
-
public class MbeansDescriptorsIntrospectionSource extends ModelerSource
-
-
Constructor Summary
Constructors Constructor Description MbeansDescriptorsIntrospectionSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedBean
createManagedBean(Registry registry, String domain, Class realClass, 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()
protected boolean
isBeanCompatible(Class javaType)
Check if this class conforms to JavaBeans specifications.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
-
isBeanCompatible
protected boolean isBeanCompatible(Class javaType)
Check if this class conforms to JavaBeans specifications. If the class is conformant, returns true.- Parameters:
javaType
- The class to check- Returns:
- boolean True if the class is compatible.
-
createManagedBean
public ManagedBean createManagedBean(Registry registry, String domain, Class realClass, 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 analyzetype
- The bean type- Returns:
- ManagedBean The create MBean
-
-