The Composite UI Application Block uses ObjectBuilder to create objects and perform dependency injection, and the guidance package generates code that uses ObjectBuilder.
To support component independence, a component must be able to use another component without requiring a change to the source code of the component to be used. To support this, the Composite Web Application Block uses dependency injection to create component object instances.
Application does not create instances of another component by directly constructing an object (using new). Instead, the source code for a Composite Web Application Block application contains attributes such as CreateNew and ServiceDependency.
These attributes support the injection of objects at run time.
It supports a general-purpose attribute-based dependency injection. The attributes determine the type of object that the ObjectBuilder factory creates.
Tuesday, May 15, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment