Package org.cyclos.impl
Interface ServiceInvokerHandler
-
public interface ServiceInvokerHandlerHandler used to invoke service methods by client layer. Meant to be used only byServiceFacade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidgenerateErrorLog(String remoteAddress, Long networkId, Long configurationId, String channel, Long loggedUserId, String operation, Supplier<String> parameters, Throwable thowable)Generates an error log in a new transactionLogContextgetLogContext(SessionData sessionData, Long customWebServiceId, String serviceName, String methodName, Pair<?,com.fasterxml.jackson.databind.JsonNode> parametersPair)Returns log information about a service invocation.InvocationResultinvoke(InvocationData invocationData)Invokes a service methodServiceInterceptorsAccessorresolveInterceptors(Network network, Class<? extends Service> serviceInterface, Method method, ServiceInterceptorContext context)Resolve the interceptors defined for the given service and method.SessionDataresolveSessionData(InvocationData invocationData)Resolves the session data from the given InvocationData.
-
-
-
Method Detail
-
generateErrorLog
void generateErrorLog(String remoteAddress, Long networkId, Long configurationId, String channel, Long loggedUserId, String operation, Supplier<String> parameters, Throwable thowable)
Generates an error log in a new transaction
-
getLogContext
LogContext getLogContext(SessionData sessionData, Long customWebServiceId, String serviceName, String methodName, Pair<?,com.fasterxml.jackson.databind.JsonNode> parametersPair)
Returns log information about a service invocation. It never returns a null context, if the invocation must not be logged then an empty context is returned.
-
invoke
InvocationResult invoke(InvocationData invocationData) throws IllegalInvocationException
Invokes a service method- Throws:
IllegalInvocationException
-
resolveInterceptors
ServiceInterceptorsAccessor resolveInterceptors(Network network, Class<? extends Service> serviceInterface, Method method, ServiceInterceptorContext context)
Resolve the interceptors defined for the given service and method.
-
resolveSessionData
SessionData resolveSessionData(InvocationData invocationData)
Resolves the session data from the given InvocationData. Requires to be running inside a transaction
-
-