org.apache.commons.modeler.modules
public class MbeansDescriptorsIntrospectionSource extends ModelerSource
Field Summary | |
---|---|
String | location |
static Log | log |
List | mbeans |
static ObjectName[] | objNameArray |
Registry | registry |
Object | source |
static Hashtable | specialMethods |
static String[] | strArray |
static Class[] | supportedTypes |
String | type |
Method Summary | |
---|---|
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
|
void | execute() |
void | initMethods(Class realClass, Method[] methods, Hashtable attMap, Hashtable getAttMap, Hashtable setAttMap, Hashtable invokeAttMap)
Process the methods and extract 'attributes', methods, etc
|
protected boolean | isBeanCompatible(Class javaType)
Check if this class conforms to JavaBeans specifications.
|
List | loadDescriptors(Registry registry, String location, String type, Object source) |
void | setLocation(String loc) |
void | setRegistry(Registry reg) |
void | setSource(Object source) |
void | setType(String type) Used if a single component is loaded
|
boolean | supportedType(Class ret)
Check if this class is one of the supported types.
|
static String | unCapitalize(String name)
Converts the first character of the given
String into lower-case.
|
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
Parameters: realClass The class to process methods The methods to process attMap The attribute map (complete) getAttMap The readable attributess map setAttMap The settable attributes map invokeAttMap The invokable attributes map
Parameters: javaType The class to check
Returns: boolean True if the class is compatible.
Parameters: type
Parameters: ret The class to check
Returns: boolean True if class is supported
Parameters: name The string to convert
Returns: String