Interface PolicyAspectProcessor
-
- All Known Implementing Classes:
DefaultPolicyAspectProcessor
public interface PolicyAspectProcessor
Responsible for processing AOP calls toPolicy
annotated methods and running those requests through aPolicyEvaluator
before 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 anExceptionHandler
annotated method in aControllerAdvice
annotated class.Further customizations of
Policy
configuration can be achieved viaPolicyOverride
beans 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 Object
validate(org.aspectj.lang.ProceedingJoinPoint joinPoint, Object aspect)
Validate thePolicy
annotated method call
-
-
-
Method Detail
-
validate
Object validate(org.aspectj.lang.ProceedingJoinPoint joinPoint, Object aspect) throws Throwable
Validate thePolicy
annotated method call- Parameters:
joinPoint
- metadata about the method callaspect
- the instance of theAspect
annotate class driving this call- Returns:
- the result of the call
- Throws:
Throwable
- any exception
-
-