Re: Servlet Init method
Nic Ferrier <[email protected]> Thu, 1 Sep 2005 17:26:43 +0100
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
Chris Pratt <[email protected]> writes: > Actually, what I remember from the early days of Servlets, it is because the > Servlet API is interface based, and you can't specify constructors in a Java > interface. The developers decided to use a method that they can specify in > the interface contract. > (*Chris*) Well, it's academic... but remember that GenericServlet is a class, not an interface so we could have used that. Applet's are also classes and they have a similar init method. The real reason, as I said, is lifecycle management. Nic ___________________________________________________________________________ To unsubscribe, send email to [email protected] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html