Package org.eclipse.jetty.webapp
Class IterativeDescriptorProcessor
- java.lang.Object
-
- org.eclipse.jetty.webapp.IterativeDescriptorProcessor
-
- All Implemented Interfaces:
DescriptorProcessor
- Direct Known Subclasses:
PlusDescriptorProcessor
,PreconfigureDescriptorProcessor
,QuickStartDescriptorProcessor
,StandardDescriptorProcessor
public abstract class IterativeDescriptorProcessor extends java.lang.Object implements DescriptorProcessor
IterativeDescriptorProcessor
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class<?>[]
__signature
protected java.util.Map<java.lang.String,java.lang.reflect.Method>
_visitors
-
Constructor Summary
Constructors Constructor Description IterativeDescriptorProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
end(WebAppContext context, Descriptor descriptor)
void
process(WebAppContext context, Descriptor descriptor)
void
registerVisitor(java.lang.String nodeName, java.lang.reflect.Method m)
Register a method to be called back when visiting the node with the given name.abstract void
start(WebAppContext context, Descriptor descriptor)
protected void
visit(WebAppContext context, Descriptor descriptor, XmlParser.Node node)
-
-
-
Method Detail
-
start
public abstract void start(WebAppContext context, Descriptor descriptor)
-
end
public abstract void end(WebAppContext context, Descriptor descriptor)
-
registerVisitor
public void registerVisitor(java.lang.String nodeName, java.lang.reflect.Method m)
Register a method to be called back when visiting the node with the given name. The method must exist on a subclass of this class, and must have the signature: public void method (Descriptor descriptor, XmlParser.Node node)- Parameters:
nodeName
- the node namem
- the method name
-
process
public void process(WebAppContext context, Descriptor descriptor) throws java.lang.Exception
- Specified by:
process
in interfaceDescriptorProcessor
- Throws:
java.lang.Exception
-
visit
protected void visit(WebAppContext context, Descriptor descriptor, XmlParser.Node node) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-