This is fantastic.

We were just looking at a way to do this - so glad you pointed it out.

Cheers,

Mark

On 4/22/06, Sean Corfield <[EMAIL PROTECTED]> wrote:
> On 4/20/06, Jared Rypka-Hauer <[EMAIL PROTECTED]> wrote:
> > <bean id="Verity" class="model.util.VerityController" singleton="true">
> >         <constructor-arg name="collection">
> >                 <value>${Constants.get("verityCollection")}</value>
> >         </constructor-arg>
> > </bean>
> > <bean id="Constants" class="model.util.Collection" singleton="true">
> >         <constructor-arg name="values">
> >                 <map>
> >                         <entry key="verityCollection">
> >                                 <value>ci</value>
> >                         </entry>
> >                 </map>
> >         </constructor-arg>
> > </bean>
>
> Why not just inject the Constants bean into the Verity controller bean
> and let it call get("verityCollection") ?
> --
> Sean A Corfield -- http://corfield.org/
> Got frameworks?
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
>


--
E: [EMAIL PROTECTED]
W: www.compoundtheory.com
ICQ: 3094740

Reply via email to