Top Description Methods
javax.portlet.annotations

public @Interface EventMethod

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

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

public void <methodName>(EventRequest, EventResponse)

where the method name can be freely selected.

The method declaration may contain a throws clause. Exceptions declared in the throws clause should be of type javax.portlet.PortletException or java.io.IOException. Checked exceptions of any other type will be caught, wrapped with a PortletException, and rethrown.

Since
3.0
See Also
processEvent

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The portlet name
portletName
()

The portlet name for the annotated method.
public PortletQName[]

Returns:

The processing event QNames
processingEvents
()

The processing event QName definitions supported by this method.
public PortletQName[]

Returns:

The processing event QNames
publishingEvents
()

The QName definitions of the events published by this method.
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

portletNameback to summary
public String portletName()

The portlet name for the annotated method.
Returns:String

The portlet name

processingEventsback to summary
public PortletQName[] processingEvents()

The processing event QName definitions supported by this method.

At least one processing event QName must be specified.

Returns:PortletQName[]

The processing event QNames

See Also
EventDefinition, PortletQName
publishingEventsback to summary
public PortletQName[] publishingEvents()

The QName definitions of the events published by this method.
Returns:PortletQName[]

The processing event QNames

See Also
EventDefinition, PortletQName