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
ClassNotFoundException
InputStream loadResourceAsStream(String name) throws IOException
IOException
InputStream loadResourceFromAllBundlesAsStream(String name) throws IOException
IOException
URL loadResourceFromAllBundles(String name) throws IOException
IOException
Object 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.InvalidSyntaxException
org.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–2020 Apache Software Foundation. All rights reserved.