public interface BundleAccessor
| Modifier and Type | Field and Description | 
|---|---|
| static String | CURRENT_BUNDLE_NAME | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addPackageFromBundle(org.osgi.framework.Bundle bundle,
                    String packageName) | 
| org.osgi.framework.ServiceReference[] | getAllServiceReferences(String className) | 
| Set<String> | getPackagesByBundle(org.osgi.framework.Bundle bundle) | 
| Object | getService(org.osgi.framework.ServiceReference ref) | 
| org.osgi.framework.ServiceReference | getServiceReference(String className) | 
| org.osgi.framework.ServiceReference[] | getServiceReferences(String className,
                    String params) | 
| Class | loadClass(String name) | 
| InputStream | loadResourceAsStream(String name) | 
| URL | loadResourceFromAllBundles(String name) | 
| InputStream | loadResourceFromAllBundlesAsStream(String name) | 
| void | setBundleContext(org.osgi.framework.BundleContext bundleContext) | 
| void | setOsgiHost(OsgiHost osgiHost) | 
static final String CURRENT_BUNDLE_NAME
Class loadClass(String name) throws ClassNotFoundException
ClassNotFoundExceptionInputStream loadResourceAsStream(String name) throws IOException
IOExceptionInputStream loadResourceFromAllBundlesAsStream(String name) throws IOException
IOExceptionURL loadResourceFromAllBundles(String name) throws IOException
IOExceptionObject getService(org.osgi.framework.ServiceReference ref)
org.osgi.framework.ServiceReference getServiceReference(String className)
org.osgi.framework.ServiceReference[] getServiceReferences(String className, String params) throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionorg.osgi.framework.ServiceReference[] getAllServiceReferences(String className)
void addPackageFromBundle(org.osgi.framework.Bundle bundle,
                          String packageName)
void setBundleContext(org.osgi.framework.BundleContext bundleContext)
void setOsgiHost(OsgiHost osgiHost)
Copyright © 2000–2025 Apache Software Foundation. All rights reserved.