Configuring ExtensionConfig before TypeConfig

Apr 6, 2008 at 1:29 PM
I'm currently trying to get singletons to work.

I have a configuration extension that I built that adds arbitrary strategies when its ExtensionConfig gets processed. I've placed a SingletonStrategy to be created there.

However, the SingletonStrategy doesn't get created/added until the end because the ExtentionConfig's are the last to be configured, after types and instances are created. So when my types get created, none of them resolve as singletons.

Doesn't it make sense to create extensions then configure them immediately, before any types and instances are registered?