Class Digester

All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler, XMLFilter, XMLReader

public class Digester extends FullXmlFilter implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
This class was made to be a replacement for the Apache Commons Digester, which was used in the old configuration parsing. The main reason for this replacement was to have better control over the parsing process, as well as ways to create beans.

The Digester works by having a list of DigesterRules, which are matched against the current element stack. When a rule is matched, the appropriate factory is used to create a bean. If the newly created bean is an ApplicationContext, it is pushed on the context stack and used for the creation of child elements.

Author:
Niels Meijer