Hi there,

Have created a page template that sets modelClass property to 'Class01'. 
Class01.java declares a Service interface which is to be autowired. My spring 
context correctly defines the Service impl bean (that implements the interface) 
and I can see this is created (via a sysout in its constructor).

Yet, when I preview the page that uses the template, I get a null pointer 
exception as the Service object in Class01 is null. 

>From this I suspect that Magnolia bypasses the Spring fwk when creating the 
>Class01 instance. Is that correct? How do I resolve my issue of wanting to 
>autowire my Service impl in the model classes I wish to use?

Regards,

Paul

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=5f4656e6-a1b8-47cd-870a-d4a564f3514f


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to