Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] "Perreturned" instantiation

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

I see your point. Probably a map would be more appropriate.

Thanks for the hint.

Eric

Wes Isberg wrote:
> Hi Eric -
> 
> What would one do with this language feature?
> 
> perthis and pertarget aspects have the nice property of holding
> state for target state (this, target) that persists throughout a
> join point and thus is relevant during the execution of any advice
> on such join points.  Here, the return value is only available
> after the join
> point returns (though perhaps multiple times).  Further, you're
> asking for the aspect to be instantiated only after the joint point
> is executed, even though instantiating the aspect is required to
> run advice.       
> 
> Should one not implement simple association as a map?  Aspect
> association involves these additional semantics of pointcut
> dependency (no advice runs unless the aspect is instantiated) which
> might not be apt for return values or thrown exceptions.   
> 
> Curious -
> Wes


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

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

iQA/AwUBQZJwbMwiFCm7RlWCEQL1uwCfTZEtNNRRYnmlJtGo9F5A8M/OgV8AnioE
C+Tam+hM1rDA8/sjX/zZWCMi
=ShZq
-----END PGP SIGNATURE-----




Back to the top