|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.osgi.web.deployer.support.AbstractWarDeployer
org.springframework.osgi.web.deployer.tomcat.TomcatWarDeployer
public class TomcatWarDeployer
Apache Tomcat 5.5.x/6.0.x specific war deployer. Unpacks the given bundle into a temporary folder which is then used for deploying the war into the web container.
The deployer works with a Service
instance which should contain
the Host
and at least one
Connector
. The service can be either
configured by the user (setService(Object)
or detected
automatically by the deployer.
Note: It is up to the Catalina Service provider to decide whether an
Embedded
instance is used or whether a
Catalina
object will be used instead.
Context
,
Container
,
Loader
Field Summary |
---|
Fields inherited from class org.springframework.osgi.web.deployer.support.AbstractWarDeployer |
---|
log |
Constructor Summary | |
---|---|
TomcatWarDeployer()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected WarDeployment |
createDeployment(Bundle bundle,
String contextPath)
Creates and configures (but does not start) the web deployment for the given bundle. |
protected String |
getServerInfo()
Returns a nice String representation of the underlying server for logging messages. |
void |
setService(Object service)
Sets the Tomcat Service used by this deployer. |
protected void |
startDeployment(WarDeployment deployment)
Starts the deployment artifact using the object returned by AbstractWarDeployer.createDeployment(Bundle, String) . |
Methods inherited from class org.springframework.osgi.web.deployer.support.AbstractWarDeployer |
---|
deploy, getBundleContext, setBundleContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TomcatWarDeployer()
Method Detail |
---|
public void setService(Object service)
Service
interface (using a timeout of 5 seconds).
To avoid the dependencies on Tomcat classes in its signature, this setter accepts a plain Object that is checked and casted internally.
service
- Tomcat service (normally a Spring-DM OSGi service
reference)public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class AbstractWarDeployer
Exception
protected WarDeployment createDeployment(Bundle bundle, String contextPath) throws Exception
AbstractWarDeployer
AbstractWarDeployer.startDeployment(WarDeployment)
.
createDeployment
in class AbstractWarDeployer
bundle
- OSGi bundle deployed as warcontextPath
- WAR context path
Exception
- if something goes wrong.protected void startDeployment(WarDeployment deployment) throws Exception
AbstractWarDeployer
AbstractWarDeployer.createDeployment(Bundle, String)
.
startDeployment
in class AbstractWarDeployer
deployment
- web deployment artifact
Exception
- if something goes wrongprotected String getServerInfo()
AbstractWarDeployer
getServerInfo
in class AbstractWarDeployer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |