public class DelegatingBundle extends Object implements org.osgi.framework.Bundle
Bundle objects.| Constructor and Description |
|---|
DelegatingBundle(org.osgi.framework.Bundle bundle) |
DelegatingBundle(Collection<org.osgi.framework.Bundle> bundles) |
| Modifier and Type | Method and Description |
|---|---|
<A> A |
adapt(Class<A> type) |
void |
addBundle(org.osgi.framework.Bundle b) |
int |
compareTo(org.osgi.framework.Bundle other) |
Enumeration |
findEntries(String arg0,
String arg1,
boolean arg2) |
org.osgi.framework.BundleContext |
getBundleContext() |
long |
getBundleId() |
File |
getDataFile(String filename) |
URL |
getEntry(String arg0) |
Enumeration |
getEntryPaths(String arg0) |
Dictionary |
getHeaders() |
Dictionary |
getHeaders(String arg0) |
long |
getLastModified() |
String |
getLocation() |
org.osgi.framework.Bundle |
getMainBundle() |
org.osgi.framework.ServiceReference[] |
getRegisteredServices() |
URL |
getResource(String name) |
Enumeration<URL> |
getResources(String name) |
org.osgi.framework.ServiceReference[] |
getServicesInUse() |
Map |
getSignerCertificates(int arg0) |
int |
getState() |
String |
getSymbolicName() |
org.osgi.framework.Version |
getVersion() |
boolean |
hasPermission(Object arg0) |
Class<?> |
loadClass(String name) |
void |
removeBundle(org.osgi.framework.Bundle b) |
void |
start() |
void |
start(int arg0) |
void |
stop() |
void |
stop(int arg0) |
String |
toString() |
void |
uninstall() |
void |
update() |
void |
update(InputStream arg0) |
public DelegatingBundle(Collection<org.osgi.framework.Bundle> bundles)
public DelegatingBundle(org.osgi.framework.Bundle bundle)
public org.osgi.framework.Bundle getMainBundle()
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass in interface org.osgi.framework.BundleClassNotFoundExceptionpublic void addBundle(org.osgi.framework.Bundle b)
public void removeBundle(org.osgi.framework.Bundle b)
public URL getResource(String name)
getResource in interface org.osgi.framework.Bundlepublic Enumeration<URL> getResources(String name) throws IOException
getResources in interface org.osgi.framework.BundleIOExceptionpublic org.osgi.framework.BundleContext getBundleContext()
getBundleContext in interface org.osgi.framework.Bundlepublic Enumeration findEntries(String arg0, String arg1, boolean arg2)
findEntries in interface org.osgi.framework.Bundlepublic long getBundleId()
getBundleId in interface org.osgi.framework.Bundlepublic URL getEntry(String arg0)
getEntry in interface org.osgi.framework.Bundlepublic Enumeration getEntryPaths(String arg0)
getEntryPaths in interface org.osgi.framework.Bundlepublic Dictionary getHeaders()
getHeaders in interface org.osgi.framework.Bundlepublic Dictionary getHeaders(String arg0)
getHeaders in interface org.osgi.framework.Bundlepublic long getLastModified()
getLastModified in interface org.osgi.framework.Bundlepublic String getLocation()
getLocation in interface org.osgi.framework.Bundlepublic org.osgi.framework.ServiceReference[] getRegisteredServices()
getRegisteredServices in interface org.osgi.framework.Bundlepublic org.osgi.framework.ServiceReference[] getServicesInUse()
getServicesInUse in interface org.osgi.framework.Bundlepublic Map getSignerCertificates(int arg0)
getSignerCertificates in interface org.osgi.framework.Bundlepublic int getState()
getState in interface org.osgi.framework.Bundlepublic String getSymbolicName()
getSymbolicName in interface org.osgi.framework.Bundlepublic org.osgi.framework.Version getVersion()
getVersion in interface org.osgi.framework.Bundlepublic boolean hasPermission(Object arg0)
hasPermission in interface org.osgi.framework.Bundlepublic void start()
throws org.osgi.framework.BundleException
start in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void start(int arg0)
throws org.osgi.framework.BundleException
start in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void stop()
throws org.osgi.framework.BundleException
stop in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void stop(int arg0)
throws org.osgi.framework.BundleException
stop in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void uninstall()
throws org.osgi.framework.BundleException
uninstall in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void update()
throws org.osgi.framework.BundleException
update in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void update(InputStream arg0) throws org.osgi.framework.BundleException
update in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic int compareTo(org.osgi.framework.Bundle other)
compareTo in interface Comparable<org.osgi.framework.Bundle>public <A> A adapt(Class<A> type)
adapt in interface org.osgi.framework.Bundlepublic File getDataFile(String filename)
getDataFile in interface org.osgi.framework.BundleCopyright © 2005-2014 The Apache Software Foundation. All Rights Reserved.