Package | Description |
---|---|
org.apache.commons.digester.plugins |
Provides an easy mechanism whereby new digestion rules
can be added dynamically during a digestion.
|
org.apache.commons.digester.plugins.strategies |
This package contains "rule-finding" strategy classes, and their associated
"helper" loader classes.
|
Modifier and Type | Method and Description |
---|---|
abstract RuleLoader |
RuleFinder.findLoader(Digester d,
Class pluginClass,
Properties p)
Apply the finder algorithm to attempt to locate a source of
digester rules for the specified plugin class.
|
RuleLoader |
PluginManager.findLoader(Digester digester,
String id,
Class pluginClass,
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).
|
Constructor and Description |
---|
Declaration(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(Class baseClass,
Class dfltPluginClass,
RuleLoader dfltPluginRuleLoader)
Create a plugin rule where the user may specify a plugin.
|
Modifier and Type | Class and Description |
---|---|
class |
LoaderFromClass
A RuleLoader which invokes a static method on a target class, leaving that
method to actually instantiate and add new rules to a Digester instance.
|
class |
LoaderFromStream
A rule-finding algorithm which loads an xmlplugins-format file.
|
class |
LoaderSetProperties
A RuleLoader which creates a single SetPropertiesRule and adds it to the
digester when its addRules() method is invoked.
|
Modifier and Type | Method and Description |
---|---|
RuleLoader |
FinderFromDfltClass.findLoader(Digester digester,
Class pluginClass,
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.
|
RuleLoader |
FinderFromMethod.findLoader(Digester d,
Class pluginClass,
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.
|
RuleLoader |
FinderFromDfltResource.findLoader(Digester d,
Class pluginClass,
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.
|
RuleLoader |
FinderSetProperties.findLoader(Digester d,
Class pluginClass,
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.
|
RuleLoader |
FinderFromResource.findLoader(Digester d,
Class pluginClass,
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.
|
RuleLoader |
FinderFromDfltMethod.findLoader(Digester d,
Class pluginClass,
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.
|
RuleLoader |
FinderFromFile.findLoader(Digester d,
Class pluginClass,
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.
|
RuleLoader |
FinderFromClass.findLoader(Digester digester,
Class pluginClass,
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.
|
static RuleLoader |
FinderFromResource.loadRules(Digester d,
Class pluginClass,
InputStream is,
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.
|
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.