You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe move 'lazy' property to TyphoonScopeLazySingleton and remove property? I don't like 'NonContained' name because it is not clear (maybe better InitSwizzled or something else)
@alexgarvarev I agree. this means a somewhat intimidating menu if scopes to learn. But it eliminates the other concept/duplication entirely. And there's been some confusion there.
After debating this with @alexgarbarev we've decided to drop it for now. The drawbacks and added complexity seem to outweigh the merits.
Users wishing to have 'rich' model objects can fairly easily instruct Typhoon to inject a given instance with little extra boilerplate. (Some frameworks provide hooks for this). On the other-hand there's some serious drawbacks to the 'global' configuration that some DI containers impose when they use this approach. . . it shouldn't be encouraged in Typhoon.
The final scope to implement will be TyphoonScopeNonContained
This scope provides a way to avoid the _'anemic model anti-pattern'_. Consider the following case:
This scope aims to address this problem. It should be used sparingly as there are some drawbacks, the main being:
The text was updated successfully, but these errors were encountered: