@Retention(value=RUNTIME) @Target(value=METHOD) public @interface DestroyMethod
public void <methodName>()
where the method name can be freely selected.
the destroy
method is called by the portlet container to
indicate to a portlet that the
portlet is being taken out of service.
Before the portlet container calls the destroy method, it should allow any threads that are currently processing requests within the portlet object to complete execution. To avoid waiting forever, the portlet container can optionally wait for a predefined time before destroying the portlet object.
This method enables the portlet to do the following:
Portlet.destroy()
public abstract String value
Java Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.