Doing more testing, I changed the injected bean's datatype from String
to Integer, so that the setter became
void setTemplateDir(Integer), and this time it was not injected into
the action, but neither was injected into the ServletDispatcherResult
object.
This last behavior may be because the Servl
Thanks Musachy for your quick answer.
Tried setting default-autowire="byName" in the beans tag but the
behavior is the same, that is, the "templateDir" String bean is
injected after method execution AND byType:
2008-07-07 16:52:40,562 DEBUG
(org.springframework.beans.factory.support.DefaultListab
Did you try forcing Spring to autowrie by name? Add
default-autowire="byName" to the "beans" tag in your spring config(s)
file(s).
musachy
On Mon, Jul 7, 2008 at 4:09 PM, Gabriel Belingueres
<[EMAIL PROTECTED]> wrote:
> Debugging the Spring output I found the following:
>
> 2008-07-07 16:52:40,42
Debugging the Spring output I found the following:
2008-07-07 16:52:40,421 DEBUG
(org.springframework.beans.factory.support.DefaultListableBeanFactory:214)
- Returning cached instance of singleton bean 'allEventoService'
2008-07-07 16:52:40,421 DEBUG
(org.springframework.beans.factory.support.Defa
The plugin doesn't really inject anything, it is all up to Spring.
musachy
On Mon, Jul 7, 2008 at 3:03 PM, Gabriel Belingueres
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to inject a String defined in the Spring's
> applicationContext.xml file like this:
>
>
> /WEB-INF/templates/
>
>
> but the
Hi,
I want to inject a String defined in the Spring's
applicationContext.xml file like this:
/WEB-INF/templates/
but the Spring plugin does not try to inject it (It works with my
other injected, non String class objects though)
It is OK that the plugin does not try to inject String objects?
6 matches
Mail list logo