Author: simoneg Date: Fri Jan 2 06:24:19 2009 New Revision: 730734 URL: http://svn.apache.org/viewvc?rev=730734&view=rev Log: LABS-257 : temporary workaround
Modified: labs/magma/trunk/website-administration-inline/src/main/java/org/apache/magma/website/admin/InterceptWebMethods.aj Modified: labs/magma/trunk/website-administration-inline/src/main/java/org/apache/magma/website/admin/InterceptWebMethods.aj URL: http://svn.apache.org/viewvc/labs/magma/trunk/website-administration-inline/src/main/java/org/apache/magma/website/admin/InterceptWebMethods.aj?rev=730734&r1=730733&r2=730734&view=diff ============================================================================== --- labs/magma/trunk/website-administration-inline/src/main/java/org/apache/magma/website/admin/InterceptWebMethods.aj (original) +++ labs/magma/trunk/website-administration-inline/src/main/java/org/apache/magma/website/admin/InterceptWebMethods.aj Fri Jan 2 06:24:19 2009 @@ -16,10 +16,11 @@ import org.apache.magma.website.producers.CompoundHtmlProducer; import org.apache.magma.website.producers.ParametrizableProducer; import org.apache.magma.website.producers.ProducerParameters; +import org.aspectj.lang.reflect.MethodSignature; public aspect InterceptWebMethods percflow(HandlerSetup.inRequest()) { - declare precedence : HandlerSetup, InterceptWebMethods; + declare precedence : HandlerSetup, InterceptWebMethods, ParametrizeHtmlProducer; pointcut domethod() : execution(public Producer+ WebHandler+.do*(..)); pointcut handlemethod() : execution(public Producer+ WebHandler+.handle*(..)); @@ -55,7 +56,11 @@ } if (founds.size() > 0) { AdminWebHandler awe = RootWebHandler.getInstance().handleAdministration(); - return new CompoundHtmlProducer((HtmlProducer)ret, awe.hiddenInlineMenu(founds)); + ret = new CompoundHtmlProducer((HtmlProducer)ret, awe.hiddenInlineMenu(founds)); + // TODO remove this, see LABS-257 + ((HtmlProducer)ret).setCreatingHandler((WebHandler)thisJoinPoint.getThis()); + ((HtmlProducer)ret).setCreatingMethod(((MethodSignature)thisJoinPoint.getSignature()).getMethod()); + return ret; } } return ret; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@labs.apache.org For additional commands, e-mail: commits-h...@labs.apache.org