org.springframework.osgi.web.deployer
Interface WarDeploymentContext


public interface WarDeploymentContext

Context associated with a war deployment. Provides access to various war properties such as the owning bundle, context path or associated servlet context.

Author:
Costin Leau
See Also:
WarDeployment, ServletContext

Field Summary
static String OSGI_BUNDLE_CONTEXT_ATTRIBUTE
          Convenience context attribute under which the OSGi BundleContext is bound.
 
Method Summary
 Bundle getBundle()
          Returns the bundle associated with this war deployment.
 String getContextPath()
          Returns the context path under which this war deployment resides.
 ServletContext getServletContext()
          Returns the ServletContext used by the war backing this deployment.
 

Field Detail

OSGI_BUNDLE_CONTEXT_ATTRIBUTE

static final String OSGI_BUNDLE_CONTEXT_ATTRIBUTE
Convenience context attribute under which the OSGi BundleContext is bound. Implementations are required to support this attribute.

Method Detail

getBundle

Bundle getBundle()
Returns the bundle associated with this war deployment.

Returns:
bundle associated with this war deployment

getContextPath

String getContextPath()
Returns the context path under which this war deployment resides.

Returns:
the context path for this war deployment

getServletContext

ServletContext getServletContext()
Returns the ServletContext used by the war backing this deployment.

Returns:
the servlet context associated with this war


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