|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.runner.osgi.UnsupportedBundle
org.ops4j.pax.runner.osgi.RunnerBundle
public class RunnerBundle
| Field Summary |
|---|
| Fields inherited from interface org.osgi.framework.Bundle |
|---|
ACTIVE, INSTALLED, RESOLVED, STARTING, STOPPING, UNINSTALLED |
| Constructor Summary | |
|---|---|
RunnerBundle()
Default constructor. |
|
RunnerBundle(java.net.URL location)
Creates a bundle with a specific location (valid URL). |
|
| Method Summary | |
|---|---|
long |
getLastModified()
Always return zero = long time ago, so provisioning service will force an update. |
java.net.URL |
getLocationAsURL()
Returns the url for the bundle. |
java.net.URL |
getResource(java.lang.String name)
Delegates to class loader. |
java.lang.Integer |
getStartLevel()
Returns the start level of the bundle. |
int |
getState()
|
void |
setStartLevel(java.lang.Integer startLevel)
The start level of the bundle. |
boolean |
shouldStart()
Returns true if the bundle should be started. |
boolean |
shouldUpdate()
Returns true of the bundle whould be updated. |
void |
start()
|
void |
update()
Called by provisioning system if the update option is set on the bundle to be installed. |
| Methods inherited from class org.ops4j.pax.runner.osgi.UnsupportedBundle |
|---|
findEntries, getBundleContext, getBundleId, getEntry, getEntryPaths, getHeaders, getHeaders, getLocation, getRegisteredServices, getResources, getServicesInUse, getSymbolicName, hasPermission, loadClass, stop, uninstall, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RunnerBundle()
public RunnerBundle(java.net.URL location)
location - URL of the bundle to be installed later on| Method Detail |
|---|
public int getState()
getState in interface org.osgi.framework.BundlegetState in class UnsupportedBundle
public void start()
throws org.osgi.framework.BundleException
start in interface org.osgi.framework.Bundlestart in class UnsupportedBundleorg.osgi.framework.BundleExceptionpublic boolean shouldStart()
public void setStartLevel(java.lang.Integer startLevel)
startLevel - start level of the bundle.public java.lang.Integer getStartLevel()
public void update()
update in interface org.osgi.framework.Bundleupdate in class UnsupportedBundlepublic long getLastModified()
getLastModified in interface org.osgi.framework.BundlegetLastModified in class UnsupportedBundlepublic boolean shouldUpdate()
public java.net.URL getLocationAsURL()
public java.net.URL getResource(java.lang.String name)
getResource in interface org.osgi.framework.BundlegetResource in class UnsupportedBundle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||