org.apache.tomcat.util.modeler.modules

Class MbeansDescriptorsIntrospectionSource

public class MbeansDescriptorsIntrospectionSource extends ModelerSource

Method Summary
ManagedBeancreateManagedBean(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
voidexecute()
protected booleanisBeanCompatible(Class javaType)
Check if this class conforms to JavaBeans specifications.
ListloadDescriptors(Registry registry, String location, String type, Object source)
voidsetLocation(String loc)
voidsetRegistry(Registry reg)
voidsetSource(Object source)
voidsetType(String type)
Used if a single component is loaded

Method Detail

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 analyze type The bean type

Returns: ManagedBean The create MBean

execute

public void execute()

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.

loadDescriptors

public List loadDescriptors(Registry registry, String location, String type, Object source)

setLocation

public void setLocation(String loc)

setRegistry

public void setRegistry(Registry reg)

setSource

public void setSource(Object source)

setType

public void setType(String type)
Used if a single component is loaded

Parameters: type

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.