[ https://issues.apache.org/jira/browse/ARIES-1467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet resolved ARIES-1467. ------------------------------------ Resolution: Fixed Assignee: Guillaume Nodet Fix Version/s: blueprint-core-1.5.0 http://svn.apache.org/viewvc?view=revision&revision=1718778 > Blueprint creates unnecessary prototype bean instances > ------------------------------------------------------ > > Key: ARIES-1467 > URL: https://issues.apache.org/jira/browse/ARIES-1467 > Project: Aries > Issue Type: Bug > Components: Blueprint > Affects Versions: blueprint-core-1.4.5 > Reporter: Viktor Kozlov > Assignee: Guillaume Nodet > Priority: Critical > Fix For: blueprint-core-1.5.0 > > > After creating all necessary prototype instances, blueprint create one more > instance for each prototype bean. It can be a huge trouble when there is a > deep prototype bean tree. > Here is simple example to demonstrate it: http://www.lorien.biz/karaf/test.zip > – normal creation – > Server1 create bpt.test.internal.Server1@67ea2a02 > Server2 create bpt.test.internal.Server2@72af85f3 > Consumer1 create bpt.test.internal.Consumer1@35fc15f7 > injected_s1 bpt.test.internal.Server1@67ea2a02 > injected_s2 bpt.test.internal.Server2@72af85f3 > MyServlet create bpt.test.internal.MyServlet@612307e7 > injected_c bpt.test.internal.Consumer1@35fc15f7 > – normal creation ends – > -- unnecessary creation of Server 1 – > Server1 create bpt.test.internal.Server1@6f878ffd > – unnecessary creation of Server 1 ends – > -- unnecessary creation of Server 2 – > Server2 create bpt.test.internal.Server2@2cfe643f > – unnecessary creation of Server 2 ends – > -- unnecessary creation of Consumer (with its all dependencies which are > prototypes too) – > Server1 create bpt.test.internal.Server1@71677b2c > Server2 create bpt.test.internal.Server2@40c7bfde > Consumer1 create bpt.test.internal.Consumer1@7a05a90b > injected_s1 bpt.test.internal.Server1@71677b2c > injected_s2 bpt.test.internal.Server2@40c7bfde > – unnecessary creation of Consumer ends – -- This message was sent by Atlassian JIRA (v6.3.4#6332)