Package com.googlecode.aviator
Class ClassPathConfigFunctionLoader
java.lang.Object
com.googlecode.aviator.ClassPathConfigFunctionLoader
- All Implemented Interfaces:
FunctionLoader
A function loader that loads function from classpath config file.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static String
private Map
<String, AviatorFunction> private static int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
private static void
private static void
private Map
<String, AviatorFunction> load()
Load custom functions from config file, default is "aviator_functions.config" in classpath.private AviatorFunction
onFunctionNotFound
(String name) Invoked when function not found, The implementation must returns null when function not found.
-
Field Details
-
CUSTOM_FUNCTION_LIST_FILE
-
totalCustomFunctions
private static int totalCustomFunctions -
functions
-
-
Constructor Details
-
ClassPathConfigFunctionLoader
private ClassPathConfigFunctionLoader()
-
-
Method Details
-
getInstance
-
onFunctionNotFound
Description copied from interface:FunctionLoader
Invoked when function not found, The implementation must returns null when function not found.- Specified by:
onFunctionNotFound
in interfaceFunctionLoader
- Parameters:
name
- function name
-
info
-
error
-
load
Load custom functions from config file, default is "aviator_functions.config" in classpath.- Returns:
-
loadClass
-
closeQuietly
-