public class LoaderFromClass extends RuleLoader
Constructor and Description |
---|
LoaderFromClass(Class rulesClass,
Method rulesMethod)
Constructor.
|
LoaderFromClass(Class rulesClass,
String methodName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addRules(Digester d,
String path)
Just invoke the target method.
|
static Method |
locateMethod(Class rulesClass,
String methodName)
Find a method on the specified class whose name matches methodName,
and whose signature is:
public static void foo(Digester d, String patternPrefix); . |
public LoaderFromClass(Class rulesClass, String methodName) throws PluginException
PluginException
public void addRules(Digester d, String path) throws PluginException
addRules
in class RuleLoader
PluginException
public static Method locateMethod(Class rulesClass, String methodName) throws PluginException
public static void foo(Digester d, String patternPrefix);
.PluginException
Copyright © 2001-2015 The Apache Software Foundation. All Rights Reserved.