org.apache.commons.modeler.modules
Class MbeansDescriptorsIntrospectionSource
java.lang.Object
|
+--org.apache.commons.modeler.modules.ModelerSource
|
+--org.apache.commons.modeler.modules.MbeansDescriptorsIntrospectionSource
- public class MbeansDescriptorsIntrospectionSource
- extends ModelerSource
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MbeansDescriptorsIntrospectionSource
public MbeansDescriptorsIntrospectionSource()
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 class ModelerSource
- Following copied from class:
org.apache.commons.modeler.modules.ModelerSource
- Parameters:
registry
- location
- type
- source
- Introspected object or some other source- Throws:
Exception
-
execute
public void execute()
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
Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.