Topics: CodePlexContainer, ObjectBuilder
Sep 26, 2007 at 12:04 AM
In the CodePlexContainer's version of ObjectBuilder:

Should DefatulCreationPolicy use BuilderStrategy.GetTypeFromBuildKey() which rely on ITypeBasedBuildKey in order to find the type to build instead of just requiring the buildKey to be a Type object?

Which brings be to the my point:

Maybe BuilderStrategy.GetTypeFromBuildKey() should be move to a "BuildKeyHelper" class...
Sep 26, 2007 at 7:29 PM
Using ITypeBasedBuildKey allows a composite key which is type + something else. If you require the build key to always be exactly a Type object, then the opportunity for using composite build keys is lost.
Sep 26, 2007 at 8:57 PM
Which was my initial point:

DefaultCreationPolicy only supports Type as a valid build key.

You lose the opportunity to use composite build key.
Sep 26, 2007 at 9:56 PM
Ah, you're right, that's a bug.
Nov 8, 2007 at 8:22 PM

BradWilson wrote:
Ah, you're right, that's a bug.

Hi Brad, am I correct that this bug is still present?