public class ExpressionInvoker extends Object implements ServiceInvoker
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected ServiceRegistryEngineConfiguration |
serviceRegistryEngineConfiguration |
| Constructor and Description |
|---|
ExpressionInvoker(ServiceRegistryEngineConfiguration serviceRegistryEngineConfiguration,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
protected ExpressionServiceInvocationResponse |
asInvocationResponse(com.fasterxml.jackson.databind.node.ObjectNode resultNode) |
protected void |
completeInputParameter(ServiceDefinitionModel serviceDefinitionModel,
ServiceInputParameter inputParameter,
ServiceInvocationVariablesContainer serviceInvocationVariablesContainer)
Internal method to process a single input parameter by looking at its definition and checking its value and adding null values for missing input
parameter values in the data map.
|
protected Object |
executeExpressionAndGetResult(ServiceDefinitionModel serviceDefinition,
ServiceOperation serviceOperation,
ServiceInvocationContext context) |
ServiceInvocationResponse |
invoke(ServiceDefinitionModel serviceDefinition,
ServiceOperation serviceOperation,
ServiceInvocationContext context) |
List<ServiceInvocationResponse> |
invokeList(ServiceDefinitionModel serviceDefinition,
ServiceOperation serviceOperation,
ServiceInvocationContext serviceInvocationContext) |
public static final String KEY
protected ServiceRegistryEngineConfiguration serviceRegistryEngineConfiguration
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public ExpressionInvoker(ServiceRegistryEngineConfiguration serviceRegistryEngineConfiguration, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public ServiceInvocationResponse invoke(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext context)
invoke in interface ServiceInvokerpublic List<ServiceInvocationResponse> invokeList(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext serviceInvocationContext)
invokeList in interface ServiceInvokerprotected Object executeExpressionAndGetResult(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContext context)
protected ExpressionServiceInvocationResponse asInvocationResponse(com.fasterxml.jackson.databind.node.ObjectNode resultNode)
protected void completeInputParameter(ServiceDefinitionModel serviceDefinitionModel, ServiceInputParameter inputParameter, ServiceInvocationVariablesContainer serviceInvocationVariablesContainer)
serviceDefinitionModel - the service definition model the invocation is based oninputParameter - the input parameter to be processedserviceInvocationVariablesContainer - the container where the variable value will be added to