Package io.dialob.client.spi.function
Class FunctionRegistryImpl
- java.lang.Object
-
- io.dialob.client.spi.function.FunctionRegistryImpl
-
- All Implemented Interfaces:
io.dialob.rule.parser.function.FunctionRegistry
@Enclosing public class FunctionRegistryImpl extends Object implements io.dialob.rule.parser.function.FunctionRegistry
-
-
Constructor Summary
Constructors Constructor Description FunctionRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureFunction(String functionName, Class<?> implementationClass, boolean async)voidconfigureFunction(String functionName, String implementationName, Class<?> implementationClass, boolean async)protected io.dialob.client.spi.function.ConfiguredFunctionfindConfiguredFunction(String canonicalFunctionName, Object... args)voidinvokeFunction(io.dialob.rule.parser.function.FunctionRegistry.FunctionCallback callback, String functionName, Object... args)Invoke function dynamically by namevoidinvokeFunctionAsync(io.dialob.rule.parser.function.FunctionRegistry.FunctionCallback callback, String functionName, Object... args)Execute dynamically invoked function asynchronously by namebooleanisAsyncFunction(String functionName)io.dialob.rule.parser.api.ValueTypereturnTypeOf(String functionName, io.dialob.rule.parser.api.ValueType... argTypes)
-
-
-
Method Detail
-
returnTypeOf
public io.dialob.rule.parser.api.ValueType returnTypeOf(@Nonnull String functionName, io.dialob.rule.parser.api.ValueType... argTypes) throws io.dialob.rule.parser.api.VariableNotDefinedException- Specified by:
returnTypeOfin interfaceio.dialob.rule.parser.function.FunctionRegistry- Throws:
io.dialob.rule.parser.api.VariableNotDefinedException
-
isAsyncFunction
public boolean isAsyncFunction(String functionName)
- Specified by:
isAsyncFunctionin interfaceio.dialob.rule.parser.function.FunctionRegistry
-
configureFunction
public void configureFunction(@Nonnull String functionName, @Nonnull Class<?> implementationClass, boolean async)- Specified by:
configureFunctionin interfaceio.dialob.rule.parser.function.FunctionRegistry
-
configureFunction
public void configureFunction(@Nonnull String functionName, @Nonnull String implementationName, @Nonnull Class<?> implementationClass, boolean async)- Specified by:
configureFunctionin interfaceio.dialob.rule.parser.function.FunctionRegistry
-
invokeFunction
public void invokeFunction(io.dialob.rule.parser.function.FunctionRegistry.FunctionCallback callback, @Nonnull String functionName, Object... args)Invoke function dynamically by name- Specified by:
invokeFunctionin interfaceio.dialob.rule.parser.function.FunctionRegistry- Parameters:
callback- After function this result is delegated to thisfunctionName- Name of function to callargs- List of call arguments
-
findConfiguredFunction
protected io.dialob.client.spi.function.ConfiguredFunction findConfiguredFunction(String canonicalFunctionName, Object... args)
-
invokeFunctionAsync
public void invokeFunctionAsync(io.dialob.rule.parser.function.FunctionRegistry.FunctionCallback callback, @Nonnull String functionName, Object... args)Execute dynamically invoked function asynchronously by name- Specified by:
invokeFunctionAsyncin interfaceio.dialob.rule.parser.function.FunctionRegistry- Parameters:
callback- After function this result is delegated to thisfunctionName- Canonical function name to callargs- List of arguments
-
-