Policy Injection

 Summary of presentation "AOP & Policy Injection" that was part of Dot.Net group meeting.

 

Motivation:

  1. Mixing of business logic with supported mechanisms like logging, transaction, security
  2. Code duplication
  3. Same implementation patterns without reuse
  4. Hard maintenance
  5. Lack of modularity 

 

Aspect-oriented programming (AOP) concept:

Separate business logic (functional requirements) from supporting mechanisms (non-functional requirements)  like security, exception handling, tracing, monitoring, transactions, caching, validation.

The way is to encapsulate  supporting mechanisms into Aspects or Policies  and to address them declaratively to business logic code.

 

AOP implementation:

michael 24/02/2010 - 12:49
Syndicate content