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
PluginExceptionpublic void addRules(Digester d, String path) throws PluginException
addRules in class RuleLoaderPluginExceptionpublic static Method locateMethod(Class<?> rulesClass, String methodName) throws PluginException
public static void foo(Digester d, String patternPrefix);.PluginExceptionCopyright © 2001–2021 The Apache Software Foundation. All rights reserved.