As far as I am aware, Magnolia 4.X does not use any form of IoC container as
part of the internal implementation, so there is no Spring Application
Context. If you wish to use Spring to wire-up your services, I suspect the
best way of achieving that would be use a module and have the Spring
Application Context created as part of the module's lifecycle.

However I am not 100% sure how you would go about taking a bean created in
an Application Context and making it a part of Magnolia configuration
(perhaps someone else can help here ?). I believe that Magnolia will itself
instantiate beans declared in it's configuration and will use the
Content2Bean mechanism (
http://documentation.magnolia-cms.com/reference/configuration.html#Content2Bean)
to configure them.

For future reference, I seem to recollect reading that Magnolia 5 will be
using an IoC container as part of the internal implementation, but I believe
this was Pico container rather than Spring.

cheers,

Rob

On Mon, Jun 13, 2011 at 11:33 PM, Magnolia Forums (on behalf of Radomir
Zugic) <[email protected]> wrote:

>
> Hello,
>
> I'm trying to set up a custom UserManager which uses an external database.
> I have DAOs and services which I would like to inject into the UserManager
> instance but I cannot see where the application context is set up. Is this
> possible and if so, how?
>
> Thanks,
> Rade
>
> --
> Context is everything:
> http://forum.magnolia-cms.com/forum/thread.html?threadId=0cbf9ba0-2899-415f-9144-10521d9469d8
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>
>


-- 
Rob Blake

Co-Founder
*The Law Wizard Limited*

*www.thelawwizard.com* <http://www.thelawwizard.com/>
Twitter <http://www.twitter.com/thelawwizard> |
Facebook<http://www.facebook.com/thelawwizard>
 | YouTube <http://www.youtube.com/thelawwizard> |
LinkedIn<http://.www.linkedin.com/company/the-law-wizard-limited>
 | our Blog <http://www.blog.thelawwizard.com/>
*The Ron Cooke Hub, York Science Park, York, YO10 5GE*

Developing online legal solutions for the public and lawyers


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

Reply via email to