01: /**
02: * $Id: PortletProvisionListener.java,v 1.5 2007/02/06 22:10:19 pm95875 Exp $
03: * Copyright 2005 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.portlet.service.provision;
14:
15: import javax.servlet.ServletContext;
16: import javax.portlet.PortletContext;
17:
18: /**
19: * Listener interface for handling provisioning events.
20: * Listeners are configured for a portlet in sun-portlet.xml file.
21: */
22:
23: public interface PortletProvisionListener {
24:
25: /**
26: * Called by provisioning framework when the instance of this listener is created.
27: * @param context Portlet context
28: * @exception com.sun.portal.portlet.service.provision.PortletProvisionException
29: */
30: public void init(PortletContext context)
31: throws PortletProvisionException;
32:
33: /**
34: * Called by provisioning framework when the instance of this listener is created.
35: * @param pc Portlet context
36: * @param pc Servlet context
37: * @exception com.sun.portal.portlet.service.provision.PortletProvisionException
38: */
39: public void init(PortletContext pc, ServletContext sc)
40: throws PortletProvisionException;
41:
42: /**
43: * Method called when a provisioning event happens.
44: * @param event PortletProvisionEvent
45: * @exception com.sun.portal.portlet.service.provision.PortletProvisionException
46: */
47: void handleProvisionEvent(PortletProvisionEvent event)
48: throws PortletProvisionException;
49:
50: }
|