wood burning stoves
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

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

Joined: Jul 08, 2003
Posts: 24193

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
It's not a secret anymore!