File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 24183
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Meaning of the word hook
 
Similar Threads
WA #1.....word association
This weeks giveaway
How to do a clean exit?
Template Method design pattern and Inheritance
Confused about scope