[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-dev] Pointcut question
|
Hi,
yes, execution does the trick!
Thanks!
Andreas
--
Andreas Mueller
IIT GmbH, Bremen/Germany
http://www.swiftmq.com
Rifflard Mickaël wrote:
Hi Andreas,
Is the use of execution advice instead of call advice don't solve your problem ?
Exemple :
pointcut createConnection() : execution(public * javax.jms.*ConnectionFactory.create*Connection(..));
Mickaël
-----Message d'origine-----
De : aspectj-dev-admin@xxxxxxxxxxx
[mailto:aspectj-dev-admin@xxxxxxxxxxx]De la part de Andreas Mueller
Envoyé : vendredi 18 mars 2005 10:36
À : aspectj-dev@xxxxxxxxxxx
Objet : Re: [aspectj-dev] Pointcut question
Hi,
thanks for the answer.
Well, I tried to provide a simple example from my more complex code.
However, this simple thing seems to work.
Here is what I want to do actually:
pointcut createConnection() : call(public *
javax.jms.*ConnectionFactory.create*Connection(..));
If I look into the generated classes, the advice was inserted into
QueueConnectionFactory.createQueueConnection()
but not into
QueueConnectionFactory.createQueueConnection(String user, String password)
The implementation code of the javax.jms.*ConnectionFactory internally
calls createQueueConnection(null,null) when createQueueConnection() is
called.
Andreas