public class JettyBootstrapActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
| Constructor and Description |
|---|
JettyBootstrapActivator() |
| Modifier and Type | Method and Description |
|---|---|
static org.osgi.framework.BundleContext |
getBundleContext() |
static JettyBootstrapActivator |
getInstance() |
static void |
registerContext(org.osgi.framework.Bundle contributor,
java.lang.String contextFilePath)
Helper method that creates a new skeleton of a ContextHandler and
registers it as an OSGi service.
|
static void |
registerContext(org.osgi.framework.Bundle contributor,
java.lang.String contextFilePath,
java.util.Dictionary<java.lang.String,java.lang.String> dic)
Helper method that creates a new skeleton of a ContextHandler and
registers it as an OSGi service.
|
static void |
registerWebapplication(org.osgi.framework.Bundle contributor,
java.lang.String webappFolderPath,
java.lang.String contextPath)
Helper method that creates a new org.jetty.webapp.WebAppContext and
registers it as an OSGi service.
|
static void |
registerWebapplication(org.osgi.framework.Bundle contributor,
java.lang.String webappFolderPath,
java.lang.String contextPath,
java.util.Dictionary<java.lang.String,java.lang.String> dic)
Helper method that creates a new org.jetty.webapp.WebAppContext and
registers it as an OSGi service.
|
void |
start(org.osgi.framework.BundleContext context)
Setup a new jetty Server, registers it as a service.
|
void |
stop(org.osgi.framework.BundleContext context)
Stop the activator.
|
static void |
unregister(java.lang.String contextPath) |
public static JettyBootstrapActivator getInstance()
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorcontext - java.lang.Exceptionpublic void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorjava.lang.ExceptionBundleActivator.stop(org.osgi.framework.BundleContext)public static void registerWebapplication(org.osgi.framework.Bundle contributor,
java.lang.String webappFolderPath,
java.lang.String contextPath)
throws java.lang.Exception
JettyContextHandlerServiceTracker will do the actual deployment.contributor - The bundlewebappFolderPath - The path to the root of the webapp. Must be a
path relative to bundle; either an absolute path.contextPath - The context path. Must start with "/"java.lang.Exceptionpublic static void registerWebapplication(org.osgi.framework.Bundle contributor,
java.lang.String webappFolderPath,
java.lang.String contextPath,
java.util.Dictionary<java.lang.String,java.lang.String> dic)
throws java.lang.Exception
JettyContextHandlerServiceTracker will do the actual deployment.contributor - The bundlewebappFolderPath - The path to the root of the webapp. Must be a
path relative to bundle; either an absolute path.contextPath - The context path. Must start with "/"dic - TODO: parameter descriptionjava.lang.Exceptionpublic static void registerContext(org.osgi.framework.Bundle contributor,
java.lang.String contextFilePath)
throws java.lang.Exception
JettyContextHandlerServiceTracker will do the actual deployment.contributor - The bundle that registers a new contextcontextFilePath - The path to the file inside the bundle that
defines the context.java.lang.Exceptionpublic static void registerContext(org.osgi.framework.Bundle contributor,
java.lang.String contextFilePath,
java.util.Dictionary<java.lang.String,java.lang.String> dic)
throws java.lang.Exception
JettyContextHandlerServiceTracker will do the actual deployment.contributor - The bundle that registers a new contextcontextFilePath - The path to the file inside the bundle that
defines the context.dic - TODO: parameter descriptionjava.lang.Exceptionpublic static void unregister(java.lang.String contextPath)
public static org.osgi.framework.BundleContext getBundleContext()
Copyright © 2013 FuseSource, Corp.. All Rights Reserved.