org.apache.tomcat.util.modeler.modules
Class MbeansDescriptorsIntrospectionSource
java.lang.Object
org.apache.tomcat.util.modeler.modules.ModelerSource
org.apache.tomcat.util.modeler.modules.MbeansDescriptorsIntrospectionSource
public class MbeansDescriptorsIntrospectionSource
- extends ModelerSource
Method Summary |
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 |
void |
execute()
|
protected boolean |
isBeanCompatible(java.lang.Class<?> javaType)
Check if this class conforms to JavaBeans specifications. |
java.util.List<javax.management.ObjectName> |
loadDescriptors(Registry registry,
java.lang.String type,
java.lang.Object source)
|
void |
setLocation(java.lang.String loc)
Deprecated. Unused. Will be removed in Tomcat 8.0.x |
void |
setRegistry(Registry reg)
|
void |
setSource(java.lang.Object source)
|
void |
setType(java.lang.String type)
Used if a single component is loaded |
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
@Deprecated
public void setLocation(java.lang.String loc)
- Deprecated. Unused. Will be removed in Tomcat 8.0.x
setType
public void setType(java.lang.String type)
- Used if a single component is loaded
- Parameters:
type
-
setSource
public void setSource(java.lang.Object source)
loadDescriptors
public java.util.List<javax.management.ObjectName> loadDescriptors(Registry registry,
java.lang.String type,
java.lang.Object source)
throws java.lang.Exception
- Specified by:
loadDescriptors
in class ModelerSource
- Throws:
java.lang.Exception
execute
public void execute()
throws java.lang.Exception
- Throws:
java.lang.Exception
isBeanCompatible
protected boolean isBeanCompatible(java.lang.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,
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 analyzetype
- The bean type
- Returns:
- ManagedBean The create MBean
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.