struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: xwork and DI
Date Tue, 22 Apr 2008 01:52:25 GMT
It is just an string, like "devMode".

musachy

On Mon, Apr 21, 2008 at 8:00 PM, Wes Wannemacher <wesw@wantii.com> wrote:
> Musachy,
>
>  Is your object (injectee) instantiated by the container? I think there
>  is some work to do after instantiating so that the dependencies can be
>  injected.
>
>  -Wes
>
>
>  On Mon, 2008-04-21 at 14:37 -0400, Musachy Barroso wrote:
>  > If I want to add a constant that can be injected in one of xwork
>  > classes (like "devMode" for example), what do I need to do? Just
>  > adding @Inject and defining the constant in default.properties in core
>  > doesn't work. I don't know much about this whole guice black magic
>  > thing :)
>  >
>  > musachy
>  >
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>  For additional commands, e-mail: dev-help@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message