Uno scrittoio digitale …

28 gennaio 2012

Java Utility Sites

Archiviato in: code, java — Tag:, — admin @ 15:37

24 gennaio 2012

Kindle 4 by Amazon

Archiviato in: sapere è potere — Tag:, — admin @ 22:39

Le parole non bastano … bisogna provarlo:

Amazon Kindle

Per quanto mi rigaurda la confezione è già da URLOOOOOOOOO …

Amazon Kindle

23 gennaio 2012


Archiviato in: java — Tag:, , — admin @ 22:44

Constructors are tricky in Java, and that’s exposed in AspectJ. Here are some rules of thumb I use:

* If you want the join point on the “outside” of object creation, use:

after() returning (Foo f): call( { … }

you might be tempted to use “this” or “target” to expose the new object, but remember
that if you’re on the “outside” of object creation, the object itself might not be
created yet… it only exists “on the way out”, when you return the object.

* If you want the join point inside a particular constructor, use:

after(Foo f) returning: this(f) && execution( { … }

remember, though, that if you use “before” advice here, the body of the constructor
will not have run, and so the object may be somewhat uninitialized.

* In the rare case that there are all sorts of constructors for the object
that call each other with this(…) and you want exactly one join point
for each initialization of Foo, regardless of the path of constructors it takes,
then use:

after(Foo f) returning: this(f) && initialization( { … }


7 gennaio 2012


Archiviato in: linux — Tag:, — admin @ 14:45


Funziona con WordPress