Re: [picocontainer-dev] Latest Pico Commit.... changed behavior on AbstractContainerBuilder
Paul Hammant <[email protected]> Tue, 30 Nov 2010 10:54:53 -0600
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
--0016364994cd3c08700496480c27 Content-Type: text/plain; charset=ISO-8859-1 Is there a away that this could be a strategy on DPC ? DPC.setChildContainerStarter(new DontAutoStartChildContrainers()) DPC.setChildContainerStarter(new AutoStartChildContrainers()) // default - Paul On Tue, Nov 30, 2010 at 7:40 AM, Michael Rimov <[email protected]>wrote: > Hi guys, > > Pico 2 behavior: AbstractContainerBuilder would automatically start all > containers that it created. > New Pico 3 behavior I just checked in: Starting behavior has been > refactored out into a decorating AutoStartingContainerBuilder. So you get > Pico 2 behavior with: > ContainerBuilder builder = new AutoStartingContainerBuilder(new > GroovyContainer(.....)); > > I needed it for me because I kept running into situations where > parent.makeChildContainer() would cause all sorts of conniptions when both > the parent and child were deployed through the container builders; and my > "don't change any behavior" fix through the constructor args was __U G L > Y__. > > Let me know if there are better options that you can see. > > > -Mike > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --0016364994cd3c08700496480c27 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Is there a away that this could be a strategy on DPC ?<div><br></div><div>= =A0=A0DPC.setChildContainerStarter(new DontAutoStartChildContrainers())</di= v><div><meta charset=3D"utf-8">=A0=A0DPC.setChildContainerStarter(new AutoS= tartChildContrainers()) // default</div> <div><br></div><div>- Paul<br><br><div class=3D"gmail_quote">On Tue, Nov 30= , 2010 at 7:40 AM, Michael Rimov <span dir=3D"ltr"><<a href=3D"mailto:ri= [email protected]">[email protected]</a>></span> wrote:<br><blockq= uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc = solid;padding-left:1ex;"> Hi guys,<br> <br> Pico 2 behavior: =A0AbstractContainerBuilder would automatically start all<= br> containers that it created.<br> New Pico 3 behavior I just checked in: =A0Starting behavior has been<br> refactored out into a decorating AutoStartingContainerBuilder. =A0So you ge= t<br> Pico 2 behavior with:<br> ContainerBuilder builder =3D new AutoStartingContainerBuilder(new<br> GroovyContainer(.....));<br> <br> I needed it for me because I kept running into situations where<br> parent.makeChildContainer() would cause all sorts of conniptions when both<= br> the parent and child were deployed through the container builders; and my<b= r> "don't change any behavior" fix through the constructor args = was __U G L<br> Y__.<br> <br> Let me know if there are better options that you can see.<br> <br> <br> -Mike<br> <br> <br> ---------------------------------------------------------------------<br> To unsubscribe from this list, please visit:<br> <br> =A0 =A0<a href=3D"http://xircles.codehaus.org/manage_email" target=3D"_bla= nk">http://xircles.codehaus.org/manage_email</a><br> <br> <br> </blockquote></div><br></div> --0016364994cd3c08700496480c27--