You can have a look on Spoon also ! http://spoon.gforge.inria.fr/
Spoon processors visit the classes at source level and can inject template in it ! However the work is done at compile time (not during class loading) ! I have wrote one processor for inject MBean feature in a POJO http://spoon.gforge.inria.fr/SpoonJMX/Main An extension of it runs on OSGi to register DynamicMBean services : I will release it soon !

Best regards

Didier

BJ Hargrave a écrit :

Interesting. However the call inserted into the constructors violates safe construction (escape from constructor) [http://www-128.ibm.com/developerworks/java/library/j-jtp0618.html#2]. Essentialy, the modified constructors are publishing a reference to their partially constructed self. Seems a very bad pattern inject into someone elses code.

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
[EMAIL PROTECTED]
Office: +1 407 849 9117 Mobile: +1 386 848 3788



"Trustin Lee" <[EMAIL PROTECTED]> 06/21/2006 11:24 PM
Please respond to
[email protected]


To
[email protected]
cc

Subject
An article on dependency injection in OSGi






The article focuses on Eclipse RCP, but I think what is does is essentially
what iPOJO does.

http://www.onjava.com/pub/a/onjava/2006/06/07/ioc-for-eclipse-rcp.html

Trustin


--
---------------------------------------------------------
Didier DONSEZ
Laboratoire LSR, Institut Imag, Universite Joseph Fourier
Bat. C, 220 rue de la Chimie, Domaine Universitaire
BP 53, 38041 Grenoble Cedex 9, France
GPS : lat 45°11'38.3"N, lon 05°46'14.7"E, alt 223m
Tel : +33 4 76 63 55 49           Fax : +33 4 76 63 55 50
mailto:[EMAIL PROTECTED]
URL: http://www-adele.imag.fr/~donsez
---------------------------------------------------------


Reply via email to