Hi,

I have trouble creating a suitable syntax for introductions. The need is to aoptize a 
whole tree structure while removing single members. The reason is that including these 
classes in aoptization would lead to stack overflows (similar to a logger interceptor 
intercepting itself).

In pointcuts, the expression works like this:


  | <bind pointcut="execution(* *->*(..)) AND !execution(* 
MethodLoggingInterceptor->*(..))">
  |        <interceptor class="MethodLoggingInterceptor"/>
  |    </bind>
  | 

But a similar construction does not have the proposed effect:


  |    <introduction class="* AND !LoggableImpl"> 
  |       <mixin>
  |          <interfaces>
  |             LoggableIF
  |          </interfaces>
  |          <class>LoggableImpl</class>
  |          <construction>new LoggableImpl(this)</construction>
  |       </mixin>
  |    </introduction>
  | 

If the expression is simply *, every class gets aoptized, leading to stack overflows.  
The above syntax seems to be arbitrary selecting some classes to excluded, some are 
included. 

What is the correct syntax for doing such athing?

greets,

  Dennis

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3846998#3846998

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3846998


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to