Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] theorical question (abstract advice)

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrea wrote:
> Hi all,
> I was wondering about why advice cannot be declared abstract in
> AspectJ. Is there an implementation issue about this or there is a
> theorical reason?  

Why would you need an abstract advice? An advice is basically a
pointcut plus a method (which is not labelled!). If you want to make
yor pointcut abstract, you can do so. If you want to make the
implementation abstract, you can make the advice call an abstract
method.

You cannot declare the advice itself being abstract, simply because
it has no name, which implies that there would be no way to
implement/override it in a subaspect. AspectWerks uses plain Java for
notation of advice. There you can actually have such overriding. This
might however change due to the AspectJ/AspectWerkz merge.

Eroc

- -- 
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQkLcucwiFCm7RlWCEQKACACfczwv0nFHw18WR1czPBLXOyA223EAoMBN
lTk/RXTRQzZL1gcDdNW5dxz3
=8TuG
-----END PGP SIGNATURE-----




Back to the top