|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jetty.osgi.boot.JettyBootstrapActivator
public class JettyBootstrapActivator
Experiment: bootstrap jetty's complete distrib from an OSGi bundle. Progress:
Constructor Summary | |
---|---|
JettyBootstrapActivator()
|
Method Summary | |
---|---|
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)
|
static void |
unregister(java.lang.String contextPath)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JettyBootstrapActivator()
Method Detail |
---|
public static JettyBootstrapActivator getInstance()
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
context
-
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
java.lang.Exception
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.Exception
public 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 description
java.lang.Exception
public 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.Exception
public 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 description
java.lang.Exception
public static void unregister(java.lang.String contextPath)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |