Uses of Class
org.apache.commons.digester3.plugins.RuleLoader
-
Packages that use RuleLoader Package Description org.apache.commons.digester3.binder The Digester EDSL allows configure Digester using fluent APIs.org.apache.commons.digester3.plugins Thepluginspackage provides an easy mechanism whereby new digestion rules can be added dynamically during a digestion.org.apache.commons.digester3.plugins.strategies Theplugins.strategiespackage contains "rule-finding" strategy classes, and their associated "helper" loader classes. -
-
Uses of RuleLoader in org.apache.commons.digester3.binder
Methods in org.apache.commons.digester3.binder with type parameters of type RuleLoader Modifier and Type Method Description <RL extends RuleLoader>
PluginCreateRuleBuilderPluginCreateRuleBuilder. usingRuleLoader(RL ruleLoader)Set RuleLoader instance which knows how to load the custom rules associated with the default plugin. -
Uses of RuleLoader in org.apache.commons.digester3.plugins
Methods in org.apache.commons.digester3.plugins that return RuleLoader Modifier and Type Method Description RuleLoaderPluginManager. findLoader(Digester digester, java.lang.String id, java.lang.Class<?> pluginClass, java.util.Properties props)Given a plugin class and some associated properties, scan the list of known RuleFinder instances until one detects a source of custom rules for this plugin (aka a RuleLoader).abstract RuleLoaderRuleFinder. findLoader(Digester d, java.lang.Class<?> pluginClass, java.util.Properties p)Apply the finder algorithm to attempt to locate a source of digester rules for the specified plugin class.Constructors in org.apache.commons.digester3.plugins with parameters of type RuleLoader Constructor Description Declaration(java.lang.Class<?> pluginClass, RuleLoader ruleLoader)Create an instance where a fully-initialised ruleLoader instance is provided by the caller instead of having the PluginManager "discover" an appropriate one.PluginCreateRule(java.lang.Class<?> baseClass, java.lang.Class<?> dfltPluginClass, RuleLoader dfltPluginRuleLoader)Create a plugin rule where the user may specify a plugin. -
Uses of RuleLoader in org.apache.commons.digester3.plugins.strategies
Subclasses of RuleLoader in org.apache.commons.digester3.plugins.strategies Modifier and Type Class Description classLoaderFromClassA RuleLoader which invokes a static method on a target class, leaving that method to actually instantiate and add new rules to a Digester instance.classLoaderFromStreamA rule-finding algorithm which loads an xmlplugins-format file.classLoaderSetPropertiesA RuleLoader which creates a single SetPropertiesRule and adds it to the digester when its addRules() method is invoked.Methods in org.apache.commons.digester3.plugins.strategies that return RuleLoader Modifier and Type Method Description RuleLoaderFinderFromClass. findLoader(Digester digester, java.lang.Class<?> pluginClass, java.util.Properties p)If there exists a property with the name matching constructor param ruleClassAttr, then load the specified class, locate the appropriate rules-adding method on that class, and return an object encapsulating that info.RuleLoaderFinderFromDfltClass. findLoader(Digester digester, java.lang.Class<?> pluginClass, java.util.Properties p)If there exists a class whose name is the plugin class name + the suffix specified to the constructor, then load that class, locate the appropriate rules-adding method on that class, and return an object encapsulating that info.RuleLoaderFinderFromDfltMethod. findLoader(Digester d, java.lang.Class<?> pluginClass, java.util.Properties p)If there exists on the plugin class a method with name matching the constructor's methodName value then locate the appropriate Method on the plugin class and return an object encapsulating that info.RuleLoaderFinderFromDfltResource. findLoader(Digester d, java.lang.Class<?> pluginClass, java.util.Properties p)If there exists a resource file whose name is equal to the plugin class name + the suffix specified in the constructor, then load that file, run it through the xmlrules module and return an object encapsulating those rules.RuleLoaderFinderFromFile. findLoader(Digester d, java.lang.Class<?> pluginClass, java.util.Properties p)If there exists a property with the name specified in the constructor, then load that file, run it through the xmlrules module and return an object encapsulating those rules.RuleLoaderFinderFromMethod. findLoader(Digester d, java.lang.Class<?> pluginClass, java.util.Properties p)If there exists a property with the name matching constructor param methodAttr, then locate the appropriate Method on the plugin class and return an object encapsulating that info.RuleLoaderFinderFromResource. findLoader(Digester d, java.lang.Class<?> pluginClass, java.util.Properties p)If there exists a property with the name matching constructor param resourceAttr, then load that file, run it through the xmlrules module and return an object encapsulating those rules.RuleLoaderFinderSetProperties. findLoader(Digester d, java.lang.Class<?> pluginClass, java.util.Properties p)Returns a RuleLoader unless the properties contain an entry with the name matching constructor param propsAttr, and the value matching what is in falseval.static RuleLoaderFinderFromResource. loadRules(Digester d, java.lang.Class<?> pluginClass, java.io.InputStream is, java.lang.String resourceName)Open the specified resource file (ie a file in the classpath, including being within a jar in the classpath), run it through the xmlrules module and return an object encapsulating those rules.
-