|
From: Eduardo I. I. <zi...@su...> - 2004-05-14 13:59:44
|
What about SDL? Its the HiveMind format. Its very clean, and as capable as XML (it don't support mixed content, but is not used in config files anyhow). I would like to see Spring definition file in this format, I don't like to mentally parse the XML to find what is the real information. Some can say that it's laziness but it in everyday work it really makes a difference. I could use the saved "brain cycles" to something else ;) It would not be difficult to create an XSLT to transform XML to SDL. The SDL web site: http://jakarta.apache.org/hivemind/sdl.html And a good example from the site: <?xml version="1.0"?> <module id="some.module" version="1.0.0"> <configuration id="ControlPipeline"> <schema> <element name="processor"> <attribute name="name" required="true"/> <attribute name="service-id" required="true"/> <attribute name="before"/> <attribute name="after"/> <conversion class="some.module.PipelineContribution"> <map property="controlService" attribute="service-id" translator="service"/> </conversion> </element> </schema> </configuration> </module> would become the SDL file: module (id=some.module version="1.0.0") { configuration (id=ControlPipeline) { schema { element (name=processor) { attribute (name=name required=true) attribute (name=service-id required=true) attribute (name=before) attribute (name=after) conversion (class=some.module.PipelineContribution) { map (property=controlService attribute=service-id translator=service) } } } } } Dmitriy Kopylenko wrote: > What would you like it to look like? > > > Remco Bos wrote: > >> Is anyone using the springframework ApplicationContext without the use >> of XML (applicationContext.xml)? I know it’s possible to write your >> own AbstractApplicationContext implementation, but has anyone tried it? >> >> >> >> I don’t like XML configuration files… I really don’t. First I had to >> learn the beautiful java language, and now I feel like a scriptkiddy >> again, coding bean mappings and workflow stuff (mvc) and other things >> in XML files. (I do see the beauty of dependency injection, but XML…) >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |