public class ServiceInterceptor
extends java.lang.Object
UserSession
validity and wraps exceptions into RemoteException
.Modifier and Type | Class and Description |
---|---|
protected static class |
ServiceInterceptor.ValidateServiceMethodContext |
Constructor and Description |
---|
ServiceInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.validation.annotation.Validated |
getValidated(java.lang.reflect.Method method,
java.lang.Class targetClass) |
protected ServiceInterceptor.ValidateServiceMethodContext |
getValidateServiceMethodContext(org.aspectj.lang.ProceedingJoinPoint ctx) |
protected void |
logException(java.lang.Throwable e,
org.aspectj.lang.ProceedingJoinPoint ctx) |
void |
setBeanValidation(BeanValidation beanValidation) |
void |
setConfiguration(Configuration configuration) |
void |
setPersistence(Persistence persistence) |
void |
setStatisticsAccumulator(MiddlewareStatisticsAccumulator statisticsAccumulator) |
void |
setUserSessions(UserSessionsAPI userSessions) |
protected void |
validateMethodParameters(org.aspectj.lang.ProceedingJoinPoint ctx,
ServiceInterceptor.ValidateServiceMethodContext validatedContext) |
protected void |
validateMethodResult(org.aspectj.lang.ProceedingJoinPoint ctx,
ServiceInterceptor.ValidateServiceMethodContext validatedContext,
java.lang.Object methodResult) |
public void setUserSessions(UserSessionsAPI userSessions)
public void setPersistence(Persistence persistence)
public void setBeanValidation(BeanValidation beanValidation)
public void setStatisticsAccumulator(MiddlewareStatisticsAccumulator statisticsAccumulator)
public void setConfiguration(Configuration configuration)
@Nullable protected ServiceInterceptor.ValidateServiceMethodContext getValidateServiceMethodContext(org.aspectj.lang.ProceedingJoinPoint ctx)
protected void validateMethodParameters(org.aspectj.lang.ProceedingJoinPoint ctx, @Nullable ServiceInterceptor.ValidateServiceMethodContext validatedContext)
protected void validateMethodResult(org.aspectj.lang.ProceedingJoinPoint ctx, ServiceInterceptor.ValidateServiceMethodContext validatedContext, java.lang.Object methodResult)
protected void logException(java.lang.Throwable e, org.aspectj.lang.ProceedingJoinPoint ctx)
protected org.springframework.validation.annotation.Validated getValidated(java.lang.reflect.Method method, java.lang.Class targetClass)