|
||||||||||
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,
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,
String contextFilePath,
Dictionary<String,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,
String webappFolderPath,
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,
String webappFolderPath,
String contextPath,
Dictionary<String,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(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 Exception
start
in interface org.osgi.framework.BundleActivator
context
-
Exception
public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
Exception
public static void registerWebapplication(org.osgi.framework.Bundle contributor, String webappFolderPath, String contextPath) throws Exception
JettyContextHandlerServiceTracker
will do the actual deployment.
context
- The current bundle contextwebappFolderPath
- 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 "/"
Exception
public static void registerWebapplication(org.osgi.framework.Bundle contributor, String webappFolderPath, String contextPath, Dictionary<String,String> dic) throws Exception
JettyContextHandlerServiceTracker
will do the actual deployment.
context
- The current bundle contextwebappFolderPath
- 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 "/"thisBundleInstallationOverride
- The location to a folder where the context file is located
This overrides the default behavior that consists of using the
location where the bundle is installed. Useful when in fact
the webapp contributed is not inside a bundle.
Exception
public static void registerContext(org.osgi.framework.Bundle contributor, String contextFilePath) throws 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.
Exception
public static void registerContext(org.osgi.framework.Bundle contributor, String contextFilePath, Dictionary<String,String> dic) throws 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.thisBundleInstallationOverride
- The location to a folder where the context file is located
This overrides the default behavior that consists of using the
location where the bundle is installed. Useful when in fact
the webapp contributed is not inside a bundle.
Exception
public static void unregister(String contextPath)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |