File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes suppourt for Annotation Programming  . In servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "suppourt for Annotation Programming  . In servlets" Watch "suppourt for Annotation Programming  . In servlets" New topic
Author

suppourt for Annotation Programming . In servlets

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Servlet 2.5 provides suppourt for Annotation Programming . In this there are two methods

@preconstrct

@Predestroy


PLease tell me what is the difference when compared the above methods to init and destroy

Save India From Corruption - Anna Hazare.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Nothing really.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

(To be exact, these are @PostConstruct and @PreDestroy)


[My Blog]
All roads lead to JavaRanch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thanks for your help Paul and Christopeh.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: suppourt for Annotation Programming . In servlets