summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/branches/2.0-Beta3/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebContextConfigurator.java
blob: 66408f26d4abbc2b99853c059dd77a1fece80ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package org.apache.tuscany.sca.host.webapp;

import java.util.Enumeration;

import javax.servlet.ServletContext;

/**
 * The interface that represents a given scope (Webapp vs Servlet) that provides the configuration of the Tuscany node
 */
public interface WebContextConfigurator {
    String getInitParameter(String name);

    Enumeration<String> getInitParameterNames();

    ServletContext getServletContext();

    void setAttribute(String name, Object value);

    <T> T getAttribute(String name);

    String getName();
}