From: Alef A. \(JTeam\) <al...@jt...> - 2003-10-23 05:04:43
|
Yeah of course. I've been working with the Struts validation framework for years and I'm getting sick of it. So I'm trying to incorporate the validation information as source level metadata: /** * @jteam.validation.MaxLength ( 1 ) * @jteam.validation.RequiredIfEmpty ( anotherProperty ) * @jteam.validation.Unique ( ) */ public String setName(); In a Spring Validator, I'm retrieving the attributes using BcelAttributes and then inspect the class... Works kind of neat, but still, won't this conflict with the ASM way hibernate does things? alef -----Oorspronkelijk bericht----- Van: spr...@li... [mailto:spr...@li...] Namens Kopylenko, Dmitry Verzonden: Tuesday, October 21, 2003 8:16 PM Aan: 'spr...@li...' CC: 'al...@jt...' Onderwerp: RE: [Springframework-developer] Class file manipulation with BCEL safe? Alef, just out of curiosity, can you explain what you're trying to do, may be with some examples. Regards, Dmitriy. -----Original Message----- From: Alef Arendsen (JTeam) [mailto:al...@jt...] Sent: Tuesday, October 21, 2003 11:41 AM To: 'Spring Developers' Subject: [Springframework-developer] Class file manipulation with BCEL safe? Hi all, I'm playing around with the source level metadata stuff and it looks really cool! I'm trying to implement some of our validation features using it and have successfully generated some classes using the MetaDataCompiler. However, I was wondering how BCEL affects the classes and if this is not going to bring us major problem when for instance serializing classes and stuff... Also, I once heard Hibernate uses asm and stuff, won't this bring any conflicts? I'm to use the functionality in our domain model... Might not be the right place to ask those kind of quesitons, but anyway... Thanx, Alef P.s. Joost, one of our people and the main backend guy here has moved to Spring completely by the way. He just said: hmmmm, it seems like those spring guys are actually doing a good job (it's really something if sceptic joost says something like that :-) == JTeam B.V. Donker Curtiusstraat 7-412 1051 JL Amsterdam T: +31 20 486 20 36 M: +31 6 24 11 1996 F: +31 84 837 00 00 E: al...@jt... W: <http://www.jteam.nl> http://www.jteam.nl |