01: /**
02: * $Id: ProviderMembershipListener.java,v 1.2 2005/04/20 20:49:30 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: * Listener interface for handling membership events.
19: *
20: * @author mjain
21: */
22: public interface ProviderMembershipListener {
23:
24: /**
25: * Method called by the framework when the instance is created
26: */
27: public void init(ServletContext context)
28: throws ProviderMembershipException;
29:
30: /**
31: * Called by the framework when a member is added to a community.
32: */
33: void memberAdded(ProviderMembershipEvent event)
34: throws ProviderMembershipException;
35:
36: /**
37: * Called by the framework when a member is removed from the community.
38: */
39: void memberRemoved(ProviderMembershipEvent event)
40: throws ProviderMembershipException;
41:
42: }
|