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
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: 24184
    
  34

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]
 
Don't get me started about those stupid light bulbs.
 
subject: Meaning of the word hook