Class PluginDeclarationRule
- java.lang.Object
-
- org.apache.commons.digester.Rule
-
- org.apache.commons.digester.plugins.PluginDeclarationRule
-
public class PluginDeclarationRule extends Rule
A Digester rule which allows the user to pre-declare a class which is to be referenced later at a plugin point by a PluginCreateRule.Normally, a PluginDeclarationRule is added to a Digester instance with the pattern "{root}/plugin" or "* /plugin" where {root} is the name of the root tag in the input document.
- Since:
- 1.6
-
-
Field Summary
-
Fields inherited from class org.apache.commons.digester.Rule
digester, namespaceURI
-
-
Constructor Summary
Constructors Constructor Description PluginDeclarationRule()
constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
begin(String namespace, String name, Attributes attributes)
Invoked upon reading a tag defining a plugin declaration.static void
declarePlugin(Digester digester, Properties props)
-
Methods inherited from class org.apache.commons.digester.Rule
begin, body, body, end, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
-
-
-
-
Method Detail
-
begin
public void begin(String namespace, String name, Attributes attributes) throws Exception
Invoked upon reading a tag defining a plugin declaration. The tag must have the following mandatory attributes:- id
- class
-
declarePlugin
public static void declarePlugin(Digester digester, Properties props) throws PluginException
- Throws:
PluginException
-
-