다음을 통해 공유


Specification Design Pattern

This article describes the** Specification design pattern**. This is a behavioral design pattern, a category of design pattern used by software engineers, when writing computer programs.

Introduction

The Specification pattern is a design pattern, used in software engineering to simplify interfaces and decouple classes. Rather than having a number of methods for retrieving information under specific conditions, the class simply has a GetBySpecification method which takes the conditions (specification) as a parameter. The specifications are a class themselves that has a IsSatisfiedBy method, which determines which items are returned, based on the specifications.

It is defined as a behavioral design pattern, because the returned data and resulting actions are dependant on the specifications.

Return to Top


Benefits

This pattern helps to decouple classes, because methods are simplified to a generic call, which does not need to know the conditions.

Return to Top


Examples of the pattern

[please contribute]

 

 

Return to Top


See Also

Link to domain parent articles and related articles in TechNet Wiki.

 

Return to Top


Community Resources

These are the external links, including links to Microsoft and TechNet sites that are non-Wiki

  • [Please contribute]

 

Return to Top


References section

Use this section if you pulled source material and ideas from other sites, blogs, or forums. Make sure you have permission from authors to use their material.

  • [Please contribute]

 

 

Return to Top


http://c.statcounter.com/8278708/0/13fc676e/1/