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
public abstract class AbstractOSGiApp extends App
AbstractOSGiApp Base class representing info about a webapp/ContextHandler that is deployed into Jetty.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.osgi.framework.Bundle
_bundle
protected java.util.Dictionary<?,?>
_properties
protected org.osgi.framework.ServiceRegistration
_registration
-
Constructor Summary
Constructors Constructor Description AbstractOSGiApp(DeploymentManager manager, AppProvider provider, org.osgi.framework.Bundle bundle, java.lang.String originId)
AbstractOSGiApp(DeploymentManager manager, AppProvider provider, org.osgi.framework.Bundle bundle, java.util.Dictionary<?,?> properties, java.lang.String originId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deregisterAsOSGiService()
protected Resource
findFile(java.lang.String fileName, java.lang.String jettyHome, java.lang.String bundleOverrideLocation, org.osgi.framework.Bundle containingBundle)
org.osgi.framework.Bundle
getBundle()
java.lang.String
getBundleSymbolicName()
java.lang.String
getBundleVersionAsString()
protected Resource
getFileAsResource(java.lang.String file)
protected Resource
getFileAsResource(java.lang.String dir, java.lang.String file)
org.osgi.framework.ServiceRegistration
getRegistration()
void
registerAsOSGiService()
void
setRegistration(org.osgi.framework.ServiceRegistration registration)
-
Methods inherited from class org.eclipse.jetty.deploy.App
getAppProvider, getContextHandler, getContextId, getContextPath, getDeploymentManager, getOriginId, toString
-
-
-
-
Constructor Detail
-
AbstractOSGiApp
public AbstractOSGiApp(DeploymentManager manager, AppProvider provider, org.osgi.framework.Bundle bundle, java.lang.String originId)
-
AbstractOSGiApp
public AbstractOSGiApp(DeploymentManager manager, AppProvider provider, org.osgi.framework.Bundle bundle, java.util.Dictionary<?,?> properties, java.lang.String originId)
-
-
Method Detail
-
getBundleSymbolicName
public java.lang.String getBundleSymbolicName()
-
getBundleVersionAsString
public java.lang.String 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
public void registerAsOSGiService() throws java.lang.Exception
- Throws:
java.lang.Exception
-
deregisterAsOSGiService
protected void deregisterAsOSGiService() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getFileAsResource
protected Resource getFileAsResource(java.lang.String dir, java.lang.String file)
-
getFileAsResource
protected Resource getFileAsResource(java.lang.String file)
-
findFile
protected Resource findFile(java.lang.String fileName, java.lang.String jettyHome, java.lang.String bundleOverrideLocation, org.osgi.framework.Bundle containingBundle)
-
-