I don't know Tapestry, and perhaps your pointcut doesn't map exactly the
doFilter method which is executed.
Try with a more generic pointcut like :
pointcut interceptor : execution(*
org.apache.tapestry5.TapestryFilter.doFilter(..) );
void around() : interceptor {
System.out.pr
I am new to aspectj and enounter a problem when trying to apply aspectj to
the web environment. My problem is that I need to use TapestryFilter and
want to add some more behaviour whilst tomcat execute doFilter method.
However, I notice that TapestryFilter.doFilter is marked as final so there
is n
Hi,
does AspectJ allow me to interpose on calls to superclass constructors?
For example, consider the following anonymous class:
File f = new File("name") { }
which, in bytecode, contains the following constructor:
Method name:"" Signature: (java.lang.String)void
0: aload_0
1: aload_1
Then, you can perhaps use around advice to cut short the recursion after
you've gone down the required number of times.
On Wed, Sep 2, 2009 at 9:11 AM, Dinkar Rao wrote:
> Thanks Andrew. I was hoping to avoid using external data structures,
> because in my real-world application, the recursive ca
Thanks Andrew. I was hoping to avoid using external data structures,
because in my real-world application, the recursive call is a create()
method, which creates a "department", which in turn creates each
"employee" of the department, which in turn creates each "machine" of
employee, etc, and I wan
I can't say definitively what is going on, but it sounds like there might be
another, unwoven, version of the jar on the classpath somewhere.
Another possibility is that you are running with load time weaving enabled
as well. And your woven class is being rewoven (or unwoven) before being
run. B
Hi Jean-Louis,
With an execution pointcut, the output is the same as for a call pointcut.
Still, I don't follow the significance. Execution or call, I need to
be able to (somehow) expose return values from the top 2 recursive
calls on the stack, in the invocation of some advice.
Thanks,
Dinkar
The simplest way would be to attach state to your aspect so that it can keep
track of the last n values. You also may want to attach a percflow
instantiation clause to the aspect to make sure that each initial call to
fact() has its own aspect instance.
So, something like this:
aspect A percflow
Hi,
I'm using AspectJ 1.6.5 to static-weave my EJB3 beans with maven before
deployment to a Weblogic 10.3.1 server. I wrote a unit test which assures
that the aspect has been applied successfully, but after deploying the
tested package on WLS appearently the aspect is not called at all.
I even tr
What happens with an execution pointcut instead of a call pointcut ?
Jean-Louis Pasturel
-Message d'origine-
De : aspectj-users-boun...@eclipse.org
[mailto:aspectj-users-boun...@eclipse.org] De la part de Dinkar Rao
Envoyé : mercredi 2 septembre 2009 10:21
À : aspectj-users@eclipse.or
Hi Folks,
Need some help with AspectJ. How can I capture return values from recursive
calls ? I want not only the returned value from the top level method call in
the stack, but also link the values from the intermediate method calls. For
example, given this simple method:
public int fact(in
11 matches
Mail list logo