Friday, July 6, 2012

what are the Portlet Lifecycle interfaces in JSR-286 or Portlet API 2.0?

The three life-cycle interfaces in portlets are

  1. Portlet  :  init, destroy, render, processAction ( This is mandatory interfaces for porlet class. A portlet class must implement this directly or indirectly
  2.  EventPortlet  (This is Optional). It defines the processEvent method, which accepts EventRequest and EventResponse objects as arguments.
  3.  ResourceServingPortlet. (This is also Optional)  . It defines the serveResource method, which accepts ResourceRequest and ResourceResponse objects as arguments

No comments:

Post a Comment