Top Description Methods
javax.portlet.annotations

public @Interface DestroyMethod

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD
Imports
java.lang.annotation.Retention, .Target

Designates a method corresponding to the portlet API destroy method. The annotated method must have the following signature:

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:

Since
3.0
See Also
javax.portlet.Portlet#destroy()

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The portlet name
value
()

The portlet name for the annotated method.
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The portlet name for the annotated method.
Returns:String

The portlet name