Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specification Vs Framework Theory

What is the difference between Specification and Framework with some examples ?

Is JSF a framework or a specification ?

like image 779
safwen bezzine Avatar asked Oct 17 '25 18:10

safwen bezzine


1 Answers

Definitions in one sentence:

A specification is an explicit set of rules that define how to implement a use case.

A framework facilitates and structures the actual implementation of a use case.

Cake analogy:

If a cake recipe is a specification, a cake mix is a framework.

Examples:

Spring is a framework to create web applications (among other things)

JSR-250 is a specification for Java annotations.

JSF is the specification of a framework, of which there are several widely-used implementations

like image 123
Fritz Duchardt Avatar answered Oct 19 '25 13:10

Fritz Duchardt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!