Package org.eclipse.jetty.osgi.boot
Class AbstractWebAppProvider
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.osgi.boot.AbstractWebAppProvider
- All Implemented Interfaces:
AppProvider,LifeCycle
- Direct Known Subclasses:
BundleWebAppProvider,ServiceWebAppProvider
AbstractWebAppProvider
Base class for Jetty DeploymentManager Providers that are capable of deploying a webapp, either from a bundle or an OSGi service.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassOSGiApp Represents a deployable webapp.Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContextHandler(App app) Create a ContextHandler for an AppGet the defaultsDescriptor.static StringgetOriginId(org.osgi.framework.Bundle contributor, String path) booleanbooleanGet the parentLoaderPriority.voidsetDefaultsDescriptor(String defaultsDescriptor) Set the defaultsDescriptor.voidsetDeploymentManager(DeploymentManager deploymentManager) Set the Deployment ManagervoidsetExtract(boolean extract) voidsetParentLoaderPriority(boolean parentLoaderPriority) Set the parentLoaderPriority.voidvoidsetTldBundles(String tldBundles) Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, doStart, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
-
Constructor Details
-
AbstractWebAppProvider
-
-
Method Details
-
isParentLoaderPriority
public boolean isParentLoaderPriority()Get the parentLoaderPriority.- Returns:
- the parentLoaderPriority
-
setParentLoaderPriority
public void setParentLoaderPriority(boolean parentLoaderPriority) Set the parentLoaderPriority.- Parameters:
parentLoaderPriority- the parentLoaderPriority to set
-
getDefaultsDescriptor
Get the defaultsDescriptor.- Returns:
- the defaultsDescriptor
-
setDefaultsDescriptor
Set the defaultsDescriptor.- Parameters:
defaultsDescriptor- the defaultsDescriptor to set
-
isExtract
public boolean isExtract() -
setExtract
public void setExtract(boolean extract) -
setTldBundles
- Parameters:
tldBundles- Comma separated list of bundles that contain tld jars that should be setup on the jetty instances created here.
-
getTldBundles
- Returns:
- The list of bundles that contain tld jars that should be setup on the jetty instances created here.
-
setServerInstanceWrapper
-
getServerInstanceWrapper
-
getDeploymentManager
-
setDeploymentManager
Description copied from interface:AppProviderSet the Deployment Manager- Specified by:
setDeploymentManagerin interfaceAppProvider- Parameters:
deploymentManager- the deployment manager
-
createContextHandler
Description copied from interface:AppProviderCreate a ContextHandler for an App- Specified by:
createContextHandlerin interfaceAppProvider- Parameters:
app- The App- Returns:
- A ContextHandler
- Throws:
IOException- if unable to create contextException- if unable to create context
-
getOriginId
-