[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: using CallLoggingInterceptor on existing web app

kabir.khan@jboss.com do-not-reply at jboss.com
Tue Aug 22 11:50:14 EDT 2006


"cpmcda01" wrote : I can not express how frustrated I was and how much my impression of the JBoss product diminished when I found that the source of the problem was buried in the interceptor code and was not reasonably documented.

It seems like you are doing a pretty good job to me :-)

I've added a JIRA  issue to deal with the documentation issues you mention
http://jira.jboss.com/jira/browse/JBAOP-283

I think the following should do the job:


  | <metadata tag="logging" class="org.blah.MyClass">
  |       <default>
  |          <call-logging>true</call-logging>
  |       </default>
  | </metadata>
  | 

More flexible class expressions are supported as well, e.g

  | <metadata tag="logging" class="$instanceof{@org.blah.Loggable}">
  |       <default>
  |          <call-logging>true</call-logging>
  |       </default>
  | </metadata>
  | 

Or you can narrow it down for particular fields, methods, ctors


  | <metadata tag="logging" class="$instanceof{@org.blah.Loggable}">
  |     <method expr="void some*(..)"> 
  |         <call-logging>true</call-logging>
  |       </method>
  |       <method expr="void more*(..)"> 
  |         <call-logging>true</call-logging>
  |       </method>
  |       <field name="somefield">
  |         <call-logging>true</call-logging>
  |       </field></metadata>
  | 


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

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



More information about the jboss-dev-forums mailing list