|
From: bryan <nih...@gm...> - 2004-09-16 16:03:40
|
juergen .... you are a legend !!!!=20 Hey one thing though .. Would it be possible to allow the user to specify a list like=20 so .......=20 <import resource=3D"myImport1.xml,myImport2.xml,myImport3.xml"/> The reason that this would be *super* *super* usefull is because then=20 users could store these values in a properties file or in the registry using the Preferences API and then use the property placeholder=20 configurer to fill in the blanks at runtime.=20 On other thing ..... if you wanted to be super smart and really show off=20 heres a cool feature ....=20 <beans> <if value=3D"test" equals=3D"test"> <import resource=3D"myImport1.xml"/> </if> <bean ... /> </beans> --b On Thu, 16 Sep 2004 10:22:12 +0200, j=FCrgen h=F6ller [ werk3AT ] <jue...@we...> wrote: > Hi everybody, >=20 > During an extra evening I had to spend at an airport hotel in Rome, I've = implemented an "import" tag for XML bean definitions: >=20 > http://opensource.atlassian.com/projects/spring/browse/SPR-137 >=20 > Basically, you can put any number of "import" tags at the beginning of be= an definition files: >=20 > <beans> >=20 > <import resource=3D"myImport1.xml"/> > <import resource=3D"myImport2.xml"/> >=20 > <bean ... /> >=20 > </beans> >=20 > The resource locations are interpreted as relative to the file that conta= ins the import tags. Effectively, this is delegated to the "createRelative"= method on the Resource interface, invoked on the Resource object for the c= ontaining file. ("createRelative" has already been introduced in 1.1 final.= ) >=20 > I'll commit this tonight, provided that there aren't any objections. Whil= e I'm not gonna recommend this feature too much, as I personally prefer a "= contextConfigLocation" that refers to multiple files, I still believe that = an import tag is a useful addition. In particular, some people are used to = such a feature from Ant and XWork... >=20 > Juergen >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |