Hi Nils, I wanted to see if it would be possible to bind instances from another source/configuration than Magnolia own components, so I can inject these seamlessly into my Magnolia code. I have been looking around in all of the configuration methods for binding instances, and maybe I should look into the scoping a bit more..
Rgds, Erik. On Tue, Nov 5, 2013 at 1:31 PM, Nils Breunese <[email protected]> wrote: > It depends on which scope you specify for your component when it is > actually instantiated. Yesterday we found out that if you don't specify a > specific scope (like 'singleton') the component is instantiated every time > it is used for injection, so not necessarily during Magnolia startup. > > I think it would be best to leave component instantiation to Magnolia > (and its underlying Guice dependency injection framework) if you can, but > then again maybe I don't really understand what you're trying to accomplish. > > Nils. > ------------------------------ > *Van:* [email protected] <[email protected]> > namens Erik Alphenaar <[email protected]> > *Verzonden:* dinsdag 5 november 2013 10:33 > *Aan:* Magnolia User-List > *Onderwerp:* Re: [magnolia-user] Adding component instance to Guice > runtime > > Hi Nils, > > Thanks for your reply. Components defined in the module descriptor are > instantiated at a very early stage in the startup. I want to register a > component later on in the chain, for example in the startup of a module. > Second, components in a module descriptor are instantiated by Magnolia. I > already have an instance and like I mentioned, I want that specific > instance to be registered as a component. > > Rgds, > Erik. > <http://www.vpro.nl/provpro> > > disclaimer <http://www.vpro.nl/disclaimer> > > > ------------------------------ > ---------------------------------------------------------------- > 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]> > ---------------------------------------------------------------- > ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
