8.5. Core JSR 168 objects

This section will describe the core object used when developing a JSR 168 portlet. We will also discuss some important method of each object.

8.5.1. interface javax.portlet.Portlet

All portlets must implements this interface directly or by extending a class that implements this interface. This interface defines the following methods.

void destroy()

This method is called when the portlet is being removed from service. Use this method to release any resources or write persistent state. Once the destroy method has been called no request can be sent to this portlet. If needed, a new portlet object will be instantiated to serve new requests. If there is a RuntimeException thrown during the destroy method, the destroy is ...

Get IBM Rational Application Developer V6 Portlet Application Development and Portal Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.