Class MbeansDescriptorsDigesterSource
- java.lang.Object
-
- org.apache.tomcat.util.modeler.modules.ModelerSource
-
- org.apache.tomcat.util.modeler.modules.MbeansDescriptorsDigesterSource
-
public class MbeansDescriptorsDigesterSource extends ModelerSource
Source for loading MBean descriptors from XML using a Digester.
-
-
Field Summary
-
Fields inherited from class org.apache.tomcat.util.modeler.modules.ModelerSource
sm, source
-
-
Constructor Summary
Constructors Constructor Description MbeansDescriptorsDigesterSource()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Execute the descriptor loading.java.util.List<javax.management.ObjectName>loadDescriptors(Registry registry, java.lang.String type, java.lang.Object source)Load data, returns a list of items.voidsetRegistry(Registry reg)Set the registry.voidsetSource(java.lang.Object source)Set the source.
-
-
-
Method Detail
-
setRegistry
public void setRegistry(Registry reg)
Set the registry.- Parameters:
reg- the registry to set
-
setSource
public void setSource(java.lang.Object source)
Set the source.- Parameters:
source- the source to set
-
loadDescriptors
public java.util.List<javax.management.ObjectName> loadDescriptors(Registry registry, java.lang.String type, java.lang.Object source) throws java.lang.Exception
Description copied from class:ModelerSourceLoad data, returns a list of items.- Specified by:
loadDescriptorsin classModelerSource- Parameters:
registry- The registrytype- The bean registry typesource- Introspected object or some other source- Returns:
- a list of object names
- Throws:
java.lang.Exception- Error loading descriptors
-
execute
public void execute() throws java.lang.ExceptionExecute the descriptor loading.- Throws:
java.lang.Exception- if an error occurs
-
-