01: /**
02: * $Id: ProviderProvisionListener.java,v 1.2 2005/04/20 20:49:31 mjain 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.providers.service.provision;
14:
15: import javax.servlet.ServletContext;
16:
17: /**
18: *
19: * @author mjain
20: */
21: public interface ProviderProvisionListener {
22:
23: /**
24: * Method called by the framework when the instance is created
25: */
26: public void init(ServletContext context)
27: throws ProviderProvisionException;
28:
29: /**
30: * Method that would be called when a provider instance is added to a community.
31: */
32: void provision(ProviderProvisionEvent event)
33: throws ProviderProvisionException;
34:
35: /**
36: * Method called when a provider instance is removed from a community.
37: */
38: void unprovision(ProviderProvisionEvent event)
39: throws ProviderProvisionException;
40:
41: }
|