public abstract class RuleLoader extends Object
Each plugin declaration has an associated RuleLoader instance, and that instance's addRules method is invoked each time the input xml specifies that an instance of that plugged-in class is to be created.
This is an abstract class rather than an interface in order to make it possible to enhance this class in future without breaking binary compatibility; it is possible to add methods to an abstract class, but not to an interface.
Constructor and Description |
---|
RuleLoader() |
public RuleLoader()
public abstract void addRules(Digester d, String path) throws PluginException
This method is invoked when the start of an xml tag is encountered which maps to a PluginCreateRule. Any rules added here are removed from the digester when the end of that xml tag is encountered.
d
- The gigester has to be configuredpath
- The path where rule has to be boundPluginException
- if any error occursCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.