Package org.eclipse.jetty.osgi.boot
Class AbstractOSGiApp
java.lang.Object
org.eclipse.jetty.deploy.App
org.eclipse.jetty.osgi.boot.AbstractOSGiApp
- Direct Known Subclasses:
AbstractContextProvider.OSGiApp
,AbstractWebAppProvider.OSGiApp
AbstractOSGiApp
Base class representing info about a webapp/ContextHandler that is deployed into Jetty.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.osgi.framework.Bundle
protected Dictionary<?,
?> protected org.osgi.framework.ServiceRegistration
-
Constructor Summary
ConstructorDescriptionAbstractOSGiApp
(DeploymentManager manager, AppProvider provider, org.osgi.framework.Bundle bundle, String originId) AbstractOSGiApp
(DeploymentManager manager, AppProvider provider, org.osgi.framework.Bundle bundle, Dictionary<?, ?> properties, String originId) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected Resource
findFile
(String fileName, String jettyHome, String bundleOverrideLocation, org.osgi.framework.Bundle containingBundle) org.osgi.framework.Bundle
protected Resource
getFileAsResource
(String file) protected Resource
getFileAsResource
(String dir, String file) org.osgi.framework.ServiceRegistration
void
void
setRegistration
(org.osgi.framework.ServiceRegistration registration) Methods inherited from class org.eclipse.jetty.deploy.App
getAppProvider, getContextHandler, getContextId, getContextPath, getDeploymentManager, getOriginId, toString
-
Field Details
-
_bundle
protected org.osgi.framework.Bundle _bundle -
_properties
-
_registration
protected org.osgi.framework.ServiceRegistration _registration
-
-
Constructor Details
-
AbstractOSGiApp
public AbstractOSGiApp(DeploymentManager manager, AppProvider provider, org.osgi.framework.Bundle bundle, String originId) -
AbstractOSGiApp
public AbstractOSGiApp(DeploymentManager manager, AppProvider provider, org.osgi.framework.Bundle bundle, Dictionary<?, ?> properties, String originId)
-
-
Method Details
-
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
- Throws:
Exception
-
deregisterAsOSGiService
- Throws:
Exception
-
getFileAsResource
-
getFileAsResource
-
findFile
-