|
||||||||||
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, SIGNERS_ALL, SIGNERS_TRUSTED, START_ACTIVATION_POLICY, START_TRANSIENT, STARTING, STOP_TRANSIENT, 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()
|
java.lang.String |
toString()
|
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, getSignerCertificates, getSymbolicName, getVersion, hasPermission, loadClass, start, stop, stop, uninstall, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RunnerBundle()
public RunnerBundle(java.net.URL location)
location
- URL of the bundle to be installed later onMethod Detail |
---|
public int getState()
getState
in interface org.osgi.framework.Bundle
getState
in class UnsupportedBundle
public void start() throws org.osgi.framework.BundleException
start
in interface org.osgi.framework.Bundle
start
in class UnsupportedBundle
org.osgi.framework.BundleException
public 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.Bundle
update
in class UnsupportedBundle
public long getLastModified()
getLastModified
in interface org.osgi.framework.Bundle
getLastModified
in class UnsupportedBundle
public boolean shouldUpdate()
public java.net.URL getLocationAsURL()
public java.net.URL getResource(java.lang.String name)
getResource
in interface org.osgi.framework.Bundle
getResource
in class UnsupportedBundle
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |