Package org.eclipse.jetty.osgi
Class OSGiApp
java.lang.Object
org.eclipse.jetty.deploy.App
org.eclipse.jetty.osgi.OSGiApp
public class OSGiApp
extends org.eclipse.jetty.deploy.App
OSGiApp
Base class representing info about a WebAppContext/ContextHandler to be deployed into jetty.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOSGiApp(org.eclipse.jetty.deploy.DeploymentManager manager, org.eclipse.jetty.deploy.AppProvider provider, org.osgi.framework.Bundle bundle) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidorg.osgi.framework.Bundleorg.eclipse.jetty.util.resource.Resourceorg.eclipse.jetty.server.handler.ContextHandlerorg.osgi.framework.ServiceRegistrationvoidRegister the Jetty deployed context/webapp as a service, as according to the OSGi Web Application Specification.voidsetContextHandler(org.eclipse.jetty.server.handler.ContextHandler contextHandler) voidsetContextPath(String contextPath) voidsetPathToResourceBase(String path) voidsetRegistration(org.osgi.framework.ServiceRegistration registration) Methods inherited from class org.eclipse.jetty.deploy.App
getAppProvider, getDeploymentManager, getEnvironmentName, getPath, getProperties, toString
-
Field Details
-
_bundle
protected org.osgi.framework.Bundle _bundle -
_registration
protected org.osgi.framework.ServiceRegistration _registration -
_contextHandler
protected org.eclipse.jetty.server.handler.ContextHandler _contextHandler -
_pathToResourceBase
-
_contextPath
-
_bundleResource
protected org.eclipse.jetty.util.resource.Resource _bundleResource
-
-
Constructor Details
-
OSGiApp
public OSGiApp(org.eclipse.jetty.deploy.DeploymentManager manager, org.eclipse.jetty.deploy.AppProvider provider, org.osgi.framework.Bundle bundle) throws Exception - Parameters:
manager- the DeploymentManager to which to deployprovider- the provider that discovered the context/webappbundle- the bundle associated with the context/webapp- Throws:
Exception
-
-
Method Details
-
getBundleResource
public org.eclipse.jetty.util.resource.Resource getBundleResource() -
getContextHandler
-
setContextHandler
public void setContextHandler(org.eclipse.jetty.server.handler.ContextHandler contextHandler) -
getPathToResourceBase
-
setPathToResourceBase
-
getContextPath
- Overrides:
getContextPathin classorg.eclipse.jetty.deploy.App
-
setContextPath
-
getBundleSymbolicName
-
getBundleVersionAsString
-
getBundle
public org.osgi.framework.Bundle getBundle() -
setRegistration
public void setRegistration(org.osgi.framework.ServiceRegistration registration) -
getRegistration
public org.osgi.framework.ServiceRegistration getRegistration() -
registerAsOSGiService
-
deregisterAsOSGiService
-