|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WebApplicationActivator
Responsible for activating a web application in an embedded servlet container.
| Field Summary | |
|---|---|
static java.lang.String |
CONTEXT_ATTRIBUTE
|
static java.lang.String |
SERVLET_CONTEXT_SITE
|
static java.lang.String |
SESSION_CONTEXT_SITE
|
| Method Summary | |
|---|---|
javax.servlet.ServletContext |
activate(java.lang.String contextPath,
java.net.URI uri,
java.net.URI parentClassLoaderId,
java.util.Map<java.lang.String,java.util.List<org.sca4j.pojo.reflection.Injector<?>>> injectors,
org.oasisopen.sca.ComponentContext context)
Perform the activation, which will result in making the web application available for incoming requests to the runtime. |
void |
deactivate(java.net.URI uri)
Removes an activated web application |
java.lang.ClassLoader |
getWebComponentClassLoader(java.net.URI componentId)
Returns the classloader to use for the web component corresponding the given id |
| Field Detail |
|---|
static final java.lang.String SERVLET_CONTEXT_SITE
static final java.lang.String SESSION_CONTEXT_SITE
static final java.lang.String CONTEXT_ATTRIBUTE
| Method Detail |
|---|
java.lang.ClassLoader getWebComponentClassLoader(java.net.URI componentId)
componentId - the web component id
javax.servlet.ServletContext activate(java.lang.String contextPath,
java.net.URI uri,
java.net.URI parentClassLoaderId,
java.util.Map<java.lang.String,java.util.List<org.sca4j.pojo.reflection.Injector<?>>> injectors,
org.oasisopen.sca.ComponentContext context)
throws WebApplicationActivationException
contextPath - the context path the web application will be available at. The context path is relative to the absolute address of
the embedded servlet container.uri - the URI of the contribution containing the web application assetsparentClassLoaderId - the id for parent classloader to use for the web applicationinjectors - the map of artifact ids to injectors. An artifact id identifies an artifact type such as a servlet class name or
ServletContext.context - the component context for the web component
WebApplicationActivationException - if an error occurs activating the web application
void deactivate(java.net.URI uri)
throws WebApplicationActivationException
uri - the URI the web application was activated with
WebApplicationActivationException - if an error occurs activating the web application
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||