Hi there,

Regarding this:
"charles_blaxland" wrote : 
  | - It appears that you can't refer back to a previously defined typedef when 
defining an introduction? (ie: in a similar way to how you can refer back to a 
previous pointcut definition when defining an interceptor).  What I would like to 
write is:
  | 
  |   |   <typedef name="FooTypes" expr="class(com.acme.foo.*)"/>
  |   |   <typedef name="BarTypes" expr="class(com.acme.bar.*)"/>
  |   |   <introduction expr="FooTypes OR BarTypes">
  |   |      ...
  |   |   </introduction>
  |   | 
  | But this doesn't seem to work.
  | 
  | 

In RC2 this works:

  |   <typedef name="FooTypes" expr="class(com.acme.foo.*)"/>
  |    <introduction class="$typedef{FooTypes}">
  |       <interfaces>
  |          java.io.Serializable
  |       </interfaces>
  |    </introduction>
  | 

I've just added to cvs the ability to do:


  |   <typedef name="FooTypes" expr="class(com.acme.foo.*)"/>
  |   <typedef name="BarTypes" expr="class(com.acme.bar.*)"/>
  |    <introduction expr="class($typedef{FooTypes}) OR class($typedef{BarTypes})">
  |       <interfaces>
  |          org.jboss.test.aop.basic.EmptyInterface
  |       </interfaces>
  |    </introduction>
  | 


Hope this helps.

Cheers,

Kabir


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

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


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to