Interface PolicyAspectProcessor
-
- All Known Implementing Classes:
DefaultPolicyAspectProcessor
public interface PolicyAspectProcessorResponsible for processing AOP calls toPolicyannotated methods and running those requests through aPolicyEvaluatorbefore allowing the call to proceed. The around advice will throw different classes of exceptions based on policy violations discovered. This exceptions should generally be handled and converted to expected HTTP status responses. This is generally done through anExceptionHandlerannotated method in aControllerAdviceannotated class.Further customizations of
Policyconfiguration can be achieved viaPolicyOverridebeans configured in Spring application context. PolicyOverride can also be used to introduce policy configuration in the absence of Policy annotation. PolicyOverride can also be used to remove existing Policy annotated configuration altogether.- Author:
- Jeff Fischer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectvalidate(org.aspectj.lang.ProceedingJoinPoint joinPoint, Object aspect)Validate thePolicyannotated method call
-
-
-
Method Detail
-
validate
Object validate(org.aspectj.lang.ProceedingJoinPoint joinPoint, Object aspect) throws Throwable
Validate thePolicyannotated method call- Parameters:
joinPoint- metadata about the method callaspect- the instance of theAspectannotate class driving this call- Returns:
- the result of the call
- Throws:
Throwable- any exception
-
-