01: /* Copyright 2004 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.container.services;
07:
08: import java.util.Properties;
09: import javax.servlet.ServletConfig;
10:
11: import org.apache.pluto.services.ContainerService;
12:
13: /**
14: * Defines a service for the Apache Pluto Portlet container.
15: * All services must receive a ServletConfig and Properties object.
16: * @author Ken Weiner, kweiner@unicon.net
17: * @version $Revision: 34757 $
18: */
19: public interface PortletContainerService extends ContainerService {
20:
21: /**
22: * Initializes the service using the servlet configuration
23: * and the service properties.
24: * @param servletConfig the servlet configuration
25: * @param properties the service properties
26: * @throws Exception if the initialization fails
27: */
28: public void init(ServletConfig servletConfig, Properties properties)
29: throws Exception;
30:
31: /**
32: * Destroys the services.
33: * This method allows the service to cleanup any resources.
34: * @throws Exception if the destruction fails
35: */
36: public void destroy() throws Exception;
37: }
|