Class CustomFunctionsClassFactory
- java.lang.Object
-
- org.vedantatree.expressionoasis.extensions.customfunctions.CustomFunctionsClassFactory
-
public class CustomFunctionsClassFactory extends Object
Builds a java class dynamically at run-time from method source code configured outside of the code base. This enables new functions to be added to the expression engine by configuration without recompiling. Currently only supports the creating of one custom functions class as the class name is hard coded.
-
-
Constructor Summary
Constructors Constructor Description CustomFunctionsClassFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<? extends Object>
getCustomFunctionsClass(CustomFunctionSourceProvider sourceProvider)
It returns a class which will contain all the functions provided by specified source provider.
-
-
-
Method Detail
-
getCustomFunctionsClass
public static Class<? extends Object> getCustomFunctionsClass(CustomFunctionSourceProvider sourceProvider)
It returns a class which will contain all the functions provided by specified source provider.- Parameters:
sourceProvider
- It provides the source for dynamic methods. Actual source can be XML file, or a stream, hard coded values or anything similar- Returns:
- Custom class which is created at runtime with all the methods provided by source provider
-
-