Class LoaderSetProperties
java.lang.Object
org.apache.commons.digester3.plugins.RuleLoader
org.apache.commons.digester3.plugins.strategies.LoaderSetProperties
A RuleLoader which creates a single SetPropertiesRule and adds it to the digester when its addRules() method is
invoked.
This loader ensures that any xml attributes on the plugin tag get mapped to equivalent properties on a javabean. This allows JavaBean classes to be used as plugins without any requirement to create custom plugin rules.
- Since:
- 1.6
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LoaderSetProperties
public LoaderSetProperties()
-
-
Method Details
-
addRules
Configures the digester with custom rules for some plugged-in class.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.
- Specified by:
addRules
in classRuleLoader
- Parameters:
digester
- The gigester has to be configuredpath
- The path where rule has to be bound
-