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
FieldsModifier and TypeFieldDescriptionprotected org.osgi.framework.Bundleprotected Dictionary<?,?> protected org.osgi.framework.ServiceRegistration -
Constructor Summary
ConstructorsConstructorDescriptionAbstractOSGiApp(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 voidprotected ResourcefindFile(String fileName, String jettyHome, String bundleOverrideLocation, org.osgi.framework.Bundle containingBundle) org.osgi.framework.Bundleprotected ResourcegetFileAsResource(String file) protected ResourcegetFileAsResource(String dir, String file) org.osgi.framework.ServiceRegistrationvoidvoidsetRegistration(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
-