|
From: Oliver H. <Ol...@ou...> - 2004-12-19 22:54:48
|
Using Janino is a great idea. A few months back I was playing around with implementing "abstract schema" for the Spring AOP subsystem and I did some simple benchmarking of Janino, CGLIB and JDK proxies and found that Janino was surprisingly efficient given the extra processing it needs to do. I generated the proxies using raw java code rather with than a template system as I didn't want to have any additional dependencies but what would be really nice is if you could generate the AST directly and I believe this may be on the way. Janino also includes line number (but not local variable) info in the generated classes. So if you save the code to disk you can step through the proxy implementation!=20 Oliver > -----Original Message----- > From: spr...@li...=20 > [mailto:spr...@li...] > On Behalf Of Rob Harrop > Sent: Friday, 17 December 2004 11:43 PM > To: spr...@li... > Subject: [Springframework-developer] Extending Spring AOP >=20 >=20 > All, >=20 > I am planning to add to an additional proxy implementation to=20 > Spring to=20 > solve some of the problems we are experiencing with other=20 > approaches and=20 > to allow for additional optimizations and advice types to be added in=20 > the most efficient way. >=20 > Currently, I'm looking at two separate approaches - Java-based using=20 > Janino and Bytecode-based using SERP. The Java-based approach=20 > should be=20 > quite simple to create and could be coupled with Velocity to=20 > externalize=20 > much of the boilerplate code needed for the creation of proxy=20 > classes.=20 > Alternatively we could add a simple abstraction layer on top=20 > of Janino,=20 > a la .NET CodeDOM (good idea James). The bytecode approach is=20 > much more=20 > complex and will be harder to debug but it would probably allow for=20 > absolute raw performance. >=20 > I am comfortable with either approach although I think that=20 > Janino would=20 > be ideal for our purposes. >=20 > Your thoughts? >=20 > Rob >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from=20 > real users. Discover which products truly live up to the=20 > hype. Start reading now.=20 > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Springframework-developer mailing list=20 > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer >=20 |