01: /*
02: * Created on Mar 31, 2003
03: */
04: package net.sf.jportlet.service;
05:
06: import java.util.Enumeration;
07:
08: import javax.servlet.ServletConfig;
09:
10: /**
11: * Configuration of a {@link PortletService }
12: *
13: * @author <a href="mailto:tchbansi@sourceforge.net">Herve Tchepannou</a>
14: */
15: public interface PortletServiceConfig {
16: //~ Methods ----------------------------------------------------------------
17:
18: /**
19: * Return the value of an initialization parameter of the service
20: * @param name name of the parameter
21: * @return Value of the parameter
22: */
23: public String getInitParameter(String name);
24:
25: /**
26: * Returns all the names of the initialization parameters
27: * @return Enumeration
28: */
29: public Enumeration getInitParameterNames();
30:
31: /**
32: * Return the configuration of the container servlet
33: */
34: public ServletConfig getServletConfig();
35:
36: /**
37: * Returns the context of the service
38: * @return
39: */
40: public PortletServiceContext getServiceContext();
41: }
|