Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Aspectj scope Singleton, moitoring ?

thanks Ramnivas for the clarification,
so, for example, if i increment counters, compute values ( average, max, min, standard deviation...) or write logs in a file, all these part of codes *must* be synchronized as in a regular method. All these values are shared between threads.

Ramnivas Laddad a écrit :

It certainly can be useful. It really depends on if the aspect contains shared state that can be used concurrently. In other words, the situation in an advice isn't much different than a regular method.

-Ramnivas

On Mon, Dec 28, 2009 at 10:12 AM, Jean-Louis.Pasturel <jean-louis.pasturel@xxxxxxxxx <mailto:jean-louis.pasturel@xxxxxxxxx>> wrote:

    Perhaps a stupid question ;-)
    In an advice of an aspect with the default modifier issingleton,
    is it usefull to monitor ( synchronized key word) the code bloc of
    the advice ?


    _______________________________________________
    aspectj-users mailing list
    aspectj-users@xxxxxxxxxxx <mailto:aspectj-users@xxxxxxxxxxx>
    https://dev.eclipse.org/mailman/listinfo/aspectj-users


------------------------------------------------------------------------

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users





Back to the top