Friday, October 15, 2010

What is Unity Application Block

The Unity Application block is a lightweight, extensible dependency injection container that supports constructor injection, property injection and method call injection. You can use it with Enterprise Library to create both Enterprise Library objects and your own custom business objects. However Unity Application Block is differ from other Application block included in Enterprise Library in several fundamental ways:
  • You can use Unity Application Block as a stand-alone dependency injection mechanism that does not require Enterprise Library to be installed.
  • This can be used to configure information exposed through configuration files to prepare the container, but you can also used code to dynamically register dependencies at run time.
  • This has no dependency on Enterprise Library core or Enterprise Library Configuration system. It contains its own built-in mechanism for reading configuration - although, if appropriate, this information can come from normal Enterprise Library Configuration file.

No comments: