nt: Sunday, September 20, 2009 11:39 AM
Subject: Re: [aspectj-users] selecting join points using annotations
Check your import statements. Do you have the Encrypt type imported?
-Ramnivas
On Sun, Sep 20, 2009 at 6:15 AM, Robert Taylor wrote:
Ok...I almost have it working.
Here is
defined and I have one method on a single model
> annotated.
>
>
>
> Any ideas on why the join point selection with the annotation doesn't seem
> to work?
>
>
>
> /robert
>
>
>
> - Original Message -
> *From:* Robert Taylor
> *To:* aspect
ert Taylor
To: aspectj-users@eclipse.org
Sent: Saturday, September 19, 2009 6:58 AM
Subject: Re: [aspectj-users] selecting join points using annotations
I guess I didn't look enough:
http://www.eclipse.org/aspectj/doc/released/adk15notebook/annotations-pointcuts-and-advice.html
Thanks
bject: Re: [aspectj-users] selecting join points using annotations
Perfect!
I didn't see any selection examples using annotations so I was unsure on how
to use them in the join point.
Thank you Ramnivas
/robert
- Original Message -
From: Ramnivas Laddad
To: asp
t: Re: [aspectj-users] selecting join points using annotations
This is easily possible:
pointcut encryptionOp(String data) : execution(@Encrypt void *(String)) &&
args(data);
void around(String data) : encryption(data) {
proceed(encrypt(data));
}
pointcut decryptionOp(
This is easily possible:
pointcut encryptionOp(String data) : execution(@Encrypt void *(String)) &&
args(data);
void around(String data) : encryption(data) {
proceed(encrypt(data));
}
pointcut decryptionOp() : execution(@Decrypt String *(..));
String around() : decryptionOp() {
String
Greetings,
I have a need to leverage AOP to encrypt certain POJO setter String args prior
to persisting them to the database
and to decrypt certain POJO getter methods return String values after they have
retrieved String data from the database.
I wanted to do this using annotations. For example