public class GenericBundleWrapper<T extends org.osgi.framework.Bundle> extends Object implements org.osgi.framework.Bundle
| Constructor and Description |
|---|
GenericBundleWrapper(T bundle) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Enumeration |
findEntries(String path,
String filePattern,
boolean recurse) |
org.osgi.framework.BundleContext |
getBundleContext() |
long |
getBundleId() |
URL |
getEntry(String path) |
Enumeration |
getEntryPaths(String path) |
Dictionary |
getHeaders() |
Dictionary |
getHeaders(String locale) |
long |
getLastModified() |
String |
getLocation() |
org.osgi.framework.ServiceReference[] |
getRegisteredServices() |
URL |
getResource(String name) |
Enumeration |
getResources(String name) |
org.osgi.framework.ServiceReference[] |
getServicesInUse() |
Map |
getSignerCertificates(int signersType) |
int |
getState() |
String |
getSymbolicName() |
org.osgi.framework.Version |
getVersion() |
protected T |
getWrappedBundle() |
int |
hashCode() |
boolean |
hasPermission(Object permission) |
Class |
loadClass(String name) |
void |
start() |
void |
start(int options) |
void |
stop() |
void |
stop(int options) |
String |
toString() |
void |
uninstall() |
void |
update() |
void |
update(InputStream input) |
public GenericBundleWrapper(T bundle)
protected T getWrappedBundle()
public Enumeration findEntries(String path, String filePattern, boolean recurse)
findEntries in interface org.osgi.framework.Bundlepublic org.osgi.framework.BundleContext getBundleContext()
getBundleContext in interface org.osgi.framework.Bundlepublic long getBundleId()
getBundleId in interface org.osgi.framework.Bundlepublic URL getEntry(String path)
getEntry in interface org.osgi.framework.Bundlepublic Enumeration getEntryPaths(String path)
getEntryPaths in interface org.osgi.framework.Bundlepublic Dictionary getHeaders()
getHeaders in interface org.osgi.framework.Bundlepublic Dictionary getHeaders(String locale)
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 URL getResource(String name)
getResource in interface org.osgi.framework.Bundlepublic Enumeration getResources(String name) throws IOException
getResources in interface org.osgi.framework.BundleIOExceptionpublic org.osgi.framework.ServiceReference[] getServicesInUse()
getServicesInUse in interface org.osgi.framework.Bundlepublic Map getSignerCertificates(int signersType)
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 permission)
hasPermission in interface org.osgi.framework.Bundlepublic Class loadClass(String name) throws ClassNotFoundException
loadClass in interface org.osgi.framework.BundleClassNotFoundExceptionpublic void start()
throws org.osgi.framework.BundleException
start in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void start(int options)
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 options)
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 input) throws org.osgi.framework.BundleException
update in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.