Class IterativeDescriptorProcessor

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

public abstract class IterativeDescriptorProcessor extends Object implements DescriptorProcessor
IterativeDescriptorProcessor
  • Field Details

    • __signature

      public static final Class<?>[] __signature
    • _visitors

      protected Map<String,Method> _visitors
  • Constructor Details

    • IterativeDescriptorProcessor

      public IterativeDescriptorProcessor()
  • Method Details

    • start

      public abstract void start(WebAppContext context, Descriptor descriptor)
    • end

      public abstract void end(WebAppContext context, 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 - the node name
      m - the method name
    • process

      public void process(WebAppContext context, Descriptor descriptor) throws Exception
      Specified by:
      process in interface DescriptorProcessor
      Throws:
      Exception
    • visit

      protected void visit(WebAppContext context, Descriptor descriptor, org.eclipse.jetty.xml.XmlParser.Node node) throws Exception
      Throws:
      Exception