You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2009/12/22 16:58:44 UTC
svn commit: r893211 -
/labs/magma/trunk/foundation-website/src/main/java/org/apache/magma/website/context/Contextualizer.aj
Author: simoneg
Date: Tue Dec 22 15:58:44 2009
New Revision: 893211
URL: http://svn.apache.org/viewvc?rev=893211&view=rev
Log:
LABS-471 LABS-322 : hidden method that return a producer have correct contextualization
Modified:
labs/magma/trunk/foundation-website/src/main/java/org/apache/magma/website/context/Contextualizer.aj
Modified: labs/magma/trunk/foundation-website/src/main/java/org/apache/magma/website/context/Contextualizer.aj
URL: http://svn.apache.org/viewvc/labs/magma/trunk/foundation-website/src/main/java/org/apache/magma/website/context/Contextualizer.aj?rev=893211&r1=893210&r2=893211&view=diff
==============================================================================
--- labs/magma/trunk/foundation-website/src/main/java/org/apache/magma/website/context/Contextualizer.aj (original)
+++ labs/magma/trunk/foundation-website/src/main/java/org/apache/magma/website/context/Contextualizer.aj Tue Dec 22 15:58:44 2009
@@ -28,18 +28,20 @@
declare precedence : AutoSwitchContextOwner, Contextualizer, *;
- before(WebHandler h) : HandlerSetup.doMethod(h) {
+
+
+ before(WebHandler h) : HandlerSetup.doMethod(h) || HandlerSetup.subHandle(h) || HandlerSetup.hiddenMethod(h) {
SubRunningContext context = RunningContext.get();
MethodSignature sig = (MethodSignature)thisJoinPointStaticPart.getSignature();
WebMethodContextElement wmce = new WebMethodContextElement(sig.getMethod(), thisJoinPoint.getArgs(), h, sig.getParameterNames());
context.push(wmce);
}
- after(WebHandler h) : HandlerSetup.doMethod(h) {
+ after(WebHandler h) : HandlerSetup.doMethod(h) || HandlerSetup.subHandle(h) || HandlerSetup.hiddenMethod(h) {
SubRunningContext context = RunningContext.get();
context.pop(WebMethodContextElement.class);
}
-
+/*
before(WebHandler h) : HandlerSetup.subHandle(h) {
SubRunningContext context = RunningContext.get();
MethodSignature sig = (MethodSignature)thisJoinPointStaticPart.getSignature();
@@ -51,7 +53,9 @@
SubRunningContext context = RunningContext.get();
context.pop(WebMethodContextElement.class);
}
-
+*/
+
+
before(Producer p) : (execution(* Producer+.produce(..)) || execution(* Producer+.head(..))) && this(p) {
SubRunningContext context = RunningContext.get();
context.push(p.getClass());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org