<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/pycontainer/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/pycontainer/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 25 Apr 2005 11:40:26 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pycontainer/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>DESIGN:Factory Interface may be too narrow</title><link>https://sourceforge.net/p/pycontainer/feature-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;VERSION: 0.4&lt;/p&gt;
&lt;p&gt;USE CASES:&lt;br /&gt;
1. Inject the "id" or "name" attribute into each &lt;br /&gt;
component to simplify diagnostics.&lt;br /&gt;
2. Inject a "parent" attribute into each component similar &lt;br /&gt;
to current container/sub-container handling (parent, &lt;br /&gt;
children).&lt;/p&gt;
&lt;p&gt;There are at least 2 ways to implement these 2 &lt;br /&gt;
usecases above:&lt;br /&gt;
I1. Use a special factory to inject the extra attributes.&lt;br /&gt;
I2. Provide an own container that injects the attribute(s) &lt;br /&gt;
(for each case) or derive a new one from PyContainer.&lt;/p&gt;
&lt;p&gt;Case I1 cannot be used currently, because the Factory &lt;br /&gt;
does not get the necessary information handed to it.&lt;/p&gt;
&lt;p&gt;Case I2 would cause a large duplication of PyContainer &lt;br /&gt;
code (because it does not have a post-create &lt;br /&gt;
component hook in PyContainer.getInstance()).&lt;/p&gt;
&lt;p&gt;Case I1 could be easily used if the Factory interface is &lt;br /&gt;
enlarged ala:&lt;br /&gt;
Factory.getInstance(self, classpath, componentId, &lt;br /&gt;
containerAsOwner=None)&lt;/p&gt;
&lt;p&gt;SIDE-NOTE: &lt;br /&gt;
Factory.create() would have been a more natural naming &lt;br /&gt;
choice to me (instead of Factory.getInstance()).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jens Engel</dc:creator><pubDate>Mon, 25 Apr 2005 11:40:26 -0000</pubDate><guid>https://sourceforge.net68ef48a3e671f17f87e238c22fa672aa52b42f13</guid></item></channel></rss>