Package jakarta.portlet.annotations
Annotation Type InitMethod
-
@Retention(RUNTIME) @Target(METHOD) public @interface InitMethod
Designates a method corresponding to the portlet API init method. The annotated method must have the following signature:public void <methodName>(PortletConfig) throws PortletExceptionwhere the method name can be freely selected.
the
initmethod is called by the portlet container to initialize the portlet when it is being placed into service.The portlet container calls the
initmethod exactly once after instantiating the portlet. Theinitmethod must complete successfully before the portlet can receive any requests.The portlet container cannot place the portlet into service if the
initmethod- Throws a
PortletException - Does not return within a time period defined by the portlet container.
- Since:
- 3.0
- See Also:
Portlet.init(jakarta.portlet.PortletConfig)
- Throws a
-
-
Element Detail
-
value
String value
The portlet name for the annotated method.- Returns:
- The portlet name
-
-