You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by dusty <du...@yahoo.com> on 2009/04/01 19:27:41 UTC
Re: using inject with Convention Plugin
GUICE usage is strictly forbidden.
Adam Ruggles wrote:
>
> If you're using spring, why don't you use spring to inject your property?
>
>
>
> Kumar Mettu wrote:
>>
>> Musachy,
>>
>> This works great as long as default Struts Object Factory is used but
>> get the exception the following exception If I try to use
>> StrutsSpringObjectFactory
>> com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException:
>> No mapping found for dependency
>>
>> Any thoughts?
>>
>> Thanks,
>> Kumar.
>>
>>
>>
>>
>> --- On Fri, 3/27/09, Musachy Barroso <mu...@gmail.com> wrote:
>>
>> From: Musachy Barroso <mu...@gmail.com>
>> Subject: Re: using inject with Convention Plugin
>> To: "Struts Users Mailing List" <us...@struts.apache.org>
>> Date: Friday, March 27, 2009, 12:55 PM
>>
>> There is no documentation about it. Don't tell anyone I told you, but
>> you just need to do something like:
>>
>> @Inject("the.constant")
>> public void setSomeConstant(String constant) {
>> }
>>
>> and the value of the constant with key "the.constant" will be
>> injected. You can also inject by type, like the "Container" instance
>> and so on.
>>
>> musachy
>>
>> On Fri, Mar 27, 2009 at 3:48 PM, Kumar Mettu <mk...@yahoo.com> wrote:
>>> Hi,
>>>
>>> I am looking for a way to inject resources while using Convention
>>> Plugin. I can't find any relevant docs. Can someone point me in right
>>> direction?
>>>
>>> Thanks,
>>> Kumar.
>>>
>>>
>>>
>>>
>>
>>
>>
>> --
>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/using-inject-with-Convention-Plugin-tp22748747p22831616.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org