[aspectwerkz-user] A couple of questions
"AVERY, Neil, FM" <[email protected]> Fri, 14 Oct 2005 08:30:07 +0100
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <DDCC15E558B3F142A8F72A157FBB63BE144A6C71@lon0348xns.fm.rbsgrp.net> |
Hi All,
When is the next release of Aspectwerkz?
Is Aspectwerkz still being actively developed as nothing has happened for
the last couple of months.
Ive also found two problems when using aspectwerkz:
1. Using Aspects.aspectOf(MyAspect.class, targetInstance) will always return
a MyAspect.class instance when one is not bound to targetInstance.
2. When using java 5 annotations and trying to bind multiple aspects to the
same key, only one is ever actually bound (perInstance). This is confirmed
when you browse the object instance and can view the instanceAspects
hashmap. If you remove the aspect definition which does get bound, then the
one which seems to have been hidden will successfully bind.
an example configuration follows:
<aspect class="org.stuff.RemoteMarshaller" deployment-model="perInstance"
container="org.neo.swarm.aop.AWerkzAOPFactory">
<pointcut name="poitcutA">execution(* *..*(..)) AND
within(@org.neo.swarm.SomeAnnotation *)</pointcut>
<advice name="remote" type="around" bind-to="pointcutA" />
</aspect>
<aspect class="org.stuff.ClusteredHandler" deployment-model="perInstance"
container="org.neo.swarm.aop.AWerkzAOPFactory">
<pointcut name="pointcutB">execution(* *..*(..)) AND
within(@org.neo.swarm.SomeAnnotation *)</pointcut>
<advice name="remote" type="around" bind-to="pointcutB" />
</aspect>
Any help gratefully appreciated,
Regards Neil.
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorised and regulated by the Financial Services Authority
This e-mail message is confidential and for use by the
addressee only. If the message is received by anyone other
than the addressee, please return the message to the sender
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The
Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.
Whilst all reasonable care has been taken to avoid the
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its
systems or data. No responsibility is accepted by The Royal
Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.
Visit our websites at:
http://www.rbs.co.uk/CBFM
http://www.rbsmarkets.com
********************************************************************************