Version 2 by Gavin
on Oct 03, 2006 00:05.

compared with
Version 3 by Gavin
on Oct 03, 2006 00:06.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (4)

View Page History
h2. Factories vs. Plugins vs. Adapters vs. Direct Instantiation

{note}This entire section needs some improvement.{note}

The framework must strive for consistent application in balancing between using factory methods, factory objects, and direct instantiation. Additionally, use of adapters/plugins should follow best practices and adhere to consistent patterns of use throughout the framework.
h1. Guidelines

Guidelines are not as stringent or imperative as "best practices", and depend more intimately with the specifics of each situation.
{note}This section needs some improvement.{note}

{info}Guidelines are not as stringent or imperative as "best practices", and depend more intimately with the specifics of each situation.{info}

When choosing to use a factory method, the factory method should do something that either does not belong in the constructor of the instance created by the factory, or the factory method something that can not be done in that constructor.