Hi,

i have 2 question regarding aop:

1. If i have 2 cartridges used from a 3rd one and both of them have the
generator component registered with the same id, how can i configure my
advice to run only on one of them:
<workflow>
..
  <cartridge file="org/fornax/cartridges/uml2/my1.oaw" inheritAll="true">
   <!-- in this oaw file the generator is registered with the id 'generator'
-->
    ....
  </cartridge>
  <cartridge file="org/fornax/cartridges/uml2/my2.oaw" inheritAll="true">
    <!-- in this oaw file the generator is registered with the id
'generator' too -->
    .....
  </cartridge>

   <!-- this advice should run only if the first cartridge is called -->
  <component adviceTarget="?????" 
        id="reflectionAdvice"
        class="oaw.xpand2.GeneratorAdvice">
        <advices value="........."/>
   </component>
    <!-- this advice should run only if the second cartridge is called -->
   <component adviceTarget="??????"
        id="reflectionAdvice"
        class="oaw.xpand2.GeneratorAdvice">
        <advices value="......."/>
   </component>
</workflow>


2. If in the above case in my first advice i'm trying to use stereotypes
defined in the second cartridge's  profile, how can i set them visible for
the first cartridge?

Thanx in advanced!
-- 
View this message in context: 
http://www.nabble.com/Cartridge-calls.....-tf3454904s17564.html#a9638401
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to