org.springframework.osgi.web.deployer
Interface WarDeployment


public interface WarDeployment

An OSGi war deployment.

Provides access to its context and control over its lifecycle.

Author:
Costin Leau
See Also:
WarDeployer

Method Summary
 WarDeploymentContext getDeploymentContext()
          Returns the context associated with this deployer.
 boolean isActive()
          Indicates if the current deployment is active (still deployed) or not.
 void undeploy()
          Undeploys the current deployment.
 

Method Detail

getDeploymentContext

WarDeploymentContext getDeploymentContext()
Returns the context associated with this deployer. Clients should use this interface for interacting with a war deployment as it gives access to its context without jeopardizing its lifecycle.

Returns:
context associated with this deployer.

isActive

boolean isActive()
Indicates if the current deployment is active (still deployed) or not.

Returns:
false if the deployment has been undeployed, true otherwise.

undeploy

void undeploy()
              throws OsgiWarDeploymentException
Undeploys the current deployment. If the deployment has been already undeployed, this method simply returns.

Throws:
OsgiWarDeploymentException - if something went wrong during undeployment


Copyright © 2006-2009 Spring Framework. All Rights Reserved.