Package org.alfresco.traitextender
Class RouteExtensions
- java.lang.Object
-
- org.alfresco.traitextender.RouteExtensions
-
public class RouteExtensions extends java.lang.ObjectAn method override extension routing aspect.
Overrides calls to methods marked by anExtendannotation with calls to methods having the same signature in extensions registered for theExtensionPointreferred by theExtendmethod annotation.
Overriding methods can call the overridden method using its correspondentTraitrepresentation (i.e. a method having the same signature).
If no extension is defined the call proceeds with the original method.
The aspect uses theAJExtenderstatic utility to for extension invocation and for maintaining thread-local extension-bypass contexts as not all calls must be overridden and calls from within the extension must be aware of this context (seeAJProxyTrait).- Author:
- Bogdan Horje
-
-
Constructor Summary
Constructors Constructor Description RouteExtensions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectintercept(org.aspectj.lang.ProceedingJoinPoint pjp, Extend extendAnnotation)
-
-
-
Method Detail
-
intercept
public java.lang.Object intercept(org.aspectj.lang.ProceedingJoinPoint pjp, Extend extendAnnotation) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-