org.eclipse.jetty.webapp
Class IterativeDescriptorProcessor

java.lang.Object
  extended by org.eclipse.jetty.webapp.IterativeDescriptorProcessor
All Implemented Interfaces:
DescriptorProcessor
Direct Known Subclasses:
PlusDescriptorProcessor, StandardDescriptorProcessor

public abstract class IterativeDescriptorProcessor
extends Object
implements DescriptorProcessor

IterativeDescriptorProcessor


Field Summary
static Class[] __signature
           
protected  Map<String,Method> _visitors
           
 
Constructor Summary
IterativeDescriptorProcessor()
           
 
Method Summary
abstract  void end(Descriptor descriptor)
           
 void process(Descriptor descriptor)
           
 void registerVisitor(String nodeName, Method m)
          Register a method to be called back when visiting the node with the given name.
abstract  void start(Descriptor descriptor)
           
protected  void visit(Descriptor descriptor, XmlParser.Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__signature

public static final Class[] __signature

_visitors

protected Map<String,Method> _visitors
Constructor Detail

IterativeDescriptorProcessor

public IterativeDescriptorProcessor()
Method Detail

start

public abstract void start(Descriptor descriptor)

end

public abstract void end(Descriptor descriptor)

registerVisitor

public void registerVisitor(String nodeName,
                            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 -
m -

process

public void process(Descriptor descriptor)
             throws Exception
Specified by:
process in interface DescriptorProcessor
Throws:
Exception
See Also:
DescriptorProcessor.process(org.eclipse.jetty.webapp.Descriptor)

visit

protected void visit(Descriptor descriptor,
                     XmlParser.Node node)
              throws Exception
Throws:
Exception


Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.