Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Technology vs framework

 
SrinivasaRao Somu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between Technology and Framework?
 
Marcelo Ortega
Ranch Hand
Posts: 528
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi SrinivasaRao,

A Framework is a set of class, interfaces and what have you to help you get your job done. For example, Struts is a framework which emphazises the Front Controller Pattern for the Servlet Technology model, which has a bunch of tags and class which you can use to create the Presentation tier of a web based application.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frameworks often use Inversion of Control, also known as the Hollywood "don't call us, we'll call you" style. For example the Struts framework accepts an incoming HTTP request, parses out the request parameters, maps the request to an action class and calls the action class, finally running code that you wrote.

Struts is in control. You can't change this sequence. Struts calls you when it's time for you to do something. Then it takes control again to call a view or something.

Here Martin Fowler talks about how the inversion of control is what distinguishes a framework from a library.

Did that make sense? If you don't know Struts at all we can try again with a more familiar example.
[ August 25, 2006: Message edited by: Stan James ]
 
Kishore Jannarapu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Technology is a specification given by an organization and it will provide a functionality. By using Technology we can develop the technology related functionality and can also integrate with other technologies.

But framework is a set of libraries which will provide a scratch level implementation using one or more technologies and also provides Quality ,reduce development time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic