01: /* $Id: PortletEventListener.java,v 1.2 2005/07/29 03:52:39 vs152012 Exp $
02: * Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
03: * Use is subject to license terms.
04: */
05: package com.sun.portal.portletappengine.ipc;
06:
07: /**
08: * Any portlet interested in receiving any events must implement this interface.
09: */
10: public interface PortletEventListener {
11: /**
12: * This method will be called to send the event to the portlet registered
13: * to receive the event. The portlets can process the event data obtained
14: * from EventRequest and set the render data on EventResponse or they can
15: * fire another set of event(s).
16: *
17: * @param ereq An instance of EventRequest from which event data can be
18: * obtained
19: * @param eres An instance of EventResponse on which the render parameters
20: * could be set.
21: */
22: public void handleEvent(EventRequest ereq, EventResponse eres);
23: }
|