aspose file tools*
The moose likes Beginning Java and the fly likes Meaning of the word hook Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Meaning of the word hook" Watch "Meaning of the word hook" New topic
Author

Meaning of the word hook

Tony Smith
Ranch Hand

Joined: Jul 07, 2007
Posts: 229
"The reset( ) method is a hook that Struts calls before the Form Bean is populated from an application request (e.g., HTML form submission). The validate( ) method is a hook that Struts calls"

Is there any difference between hook and methods? Why is it called hook?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

In general a "hook" is usually some way that a piece of software provides to let you customize it. Here, it's referring to methods that you write which the Struts framework will call to do certain tasks. You're therefore "customizing" what Struts does.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Meaning of the word hook
 
Similar Threads
Confused about scope
How to do a clean exit?
This weeks giveaway
Template Method design pattern and Inheritance
WA #1.....word association