Policy Injection Application Block - New Addition to Enterprise Library 3.0

Policy Injection Application Block - New Addition to Enterprise Library 3.0

by David Hayden ( Microsoft MVP C# ), Filed: Enterprise Library 3.0

 

Both Tom and Ed from Microsoft Patterns and Practices published a couple of blog posts about the new Policy Injection Application Block to be released as a part of Enteprise Library 3.0. We will be seeing it for the first time this month ( February 2007 ), but it sounds like it will only be partially complete. It won't be fully complete until March 2007, when Enterprise Library 3.0 ships.

I recommend reading Tom's introductory post and then reading Ed's post that goes into a bit more detail.

At the very least, the Policy Injection Application Block can have a huge impact on how you use Enterprise Library as it introduces Aspect Oriented Programming ( AOP ) like functionality in your applications by allowing interception of normal object creation and method invocation via policies and handlers that can be run pre- and post- invocation. My thought is that rather than calling Enterprise Library services directly and hardcoding policies as to when they are invoked, one can now describe these policies via configuration and add the services as handlers. One can adjust policies and the services they invoke transparently via configuration and not muck up our business objects with non-business related code!

We can, of course, take this to a much more sophisticated level by creating our own policies and handlers.

Great stuff!

Source: David Hayden ( Microsoft MVP C# )

Filed: Enterprise Library 3.0

posted on Friday, February 23, 2007 2:41 PM

My Links

Post Categories

Article Categories

Archives

Loose-Leaf Tea