|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WarDeployer
OSGi WAR bundle deployer. Handles the installing and uninstalling of the OSGi bundle as an web application and deals with any container specific integration.
Implementations are free to use specific environments for the actual deployment process, such as Apache Tomcat, OSGi HttpService, Jetty or other web containers. As the war listener handles the detection, start up and shutdown of the bundles, the deployer should be concerned only with the deployment process of the bundle. It is recommended to thrown exceptions (if any) in unwrapped as the extender will take care of logging and wrapping.
ContextPathStrategy
Method Summary | |
---|---|
void |
deploy(Bundle bundle,
String contextPath)
Deploys the given bundle as a WAR using the given context path. |
void |
undeploy(Bundle bundle,
String contextPath)
Un-deploys the given bundle from the given context path. |
Method Detail |
---|
void deploy(Bundle bundle, String contextPath) throws Exception
WEB-INF/web.xml
file in its bundle space. However,
implementations can chose to create a synthetic WAR or use
other configuration files instead.
bundle
- war bundlecontextPath
- the war context path
Exception
- if something went wrong during deploymentvoid undeploy(Bundle bundle, String contextPath) throws Exception
bundle
- war bundlecontextPath
- the war context path
Exception
- if something went wrong during undeployment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |