Package | Description |
---|---|
org.eclipse.osgi.framework.internal.core | |
org.eclipse.osgi.internal.serviceregistry |
Modifier and Type | Field and Description |
---|---|
protected BundleContextImpl |
BundleHost.context
The BundleContext that represents this Bundle and all of its fragments
|
Modifier and Type | Method and Description |
---|---|
protected BundleContextImpl |
BundleHost.createContext()
Create a BundleContext for this bundle.
|
protected abstract BundleContextImpl |
AbstractBundle.getContext()
Return the current context for this bundle.
|
protected BundleContextImpl |
BundleFragment.getContext()
Return the current context for this bundle.
|
protected BundleContextImpl |
BundleHost.getContext()
Return the current context for this bundle.
|
BundleContextImpl |
Framework.getSystemBundleContext() |
Modifier and Type | Method and Description |
---|---|
protected AbstractBundle |
Framework.installWorkerPrivileged(String location,
URLConnection source,
AccessControlContext callerContext,
BundleContextImpl origin)
Worker method to install a bundle.
|
Constructor and Description |
---|
CoreResolverHookFactory(BundleContextImpl context,
ServiceRegistry registry) |
Modifier and Type | Method and Description |
---|---|
void |
ServiceRegistry.addServiceListener(BundleContextImpl context,
ServiceListener listener,
String filter)
Add a new Service Listener for a bundle.
|
ServiceReferenceImpl<?>[] |
ServiceRegistry.getRegisteredServices(BundleContextImpl context)
Returns this bundle's
ServiceReference list for all
services it has registered or null if this bundle has no
registered services. |
Object |
ServiceRegistry.getService(BundleContextImpl context,
ServiceReferenceImpl<?> reference)
Returns the specified service object for a service.
|
ServiceReferenceImpl<?> |
ServiceRegistry.getServiceReference(BundleContextImpl context,
String clazz)
Returns a
ServiceReference object for a service that
implements and was registered under the specified class. |
ServiceReferenceImpl<?>[] |
ServiceRegistry.getServiceReferences(BundleContextImpl context,
String clazz,
String filterstring,
boolean allservices)
This method performs the same function as calling
ServiceRegistry.getServiceReferences(BundleContextImpl, String, String, boolean, boolean) with a
true callHooks value. |
ServiceReferenceImpl<?>[] |
ServiceRegistry.getServiceReferences(BundleContextImpl context,
String clazz,
String filterstring,
boolean allservices,
boolean callHooks)
Returns an array of
ServiceReferenceImpl objects. |
ServiceReferenceImpl<?>[] |
ServiceRegistry.getServicesInUse(BundleContextImpl context)
Returns this bundle's
ServiceReference list for all
services it is using or returns null if this bundle is not
using any services. |
ServiceRegistrationImpl<?> |
ServiceRegistry.registerService(BundleContextImpl context,
String[] clazzes,
Object service,
Dictionary<String,?> properties)
Registers the specified service object with the specified properties
under the specified class names into the Framework.
|
void |
ServiceRegistry.releaseServicesInUse(BundleContextImpl context)
Called when the BundleContext is closing to unget all services
currently used by the bundle.
|
void |
ServiceRegistry.removeAllServiceListeners(BundleContextImpl context)
Remove all Service Listener for a bundle.
|
void |
ServiceRegistry.removeServiceListener(BundleContextImpl context,
ServiceListener listener)
Remove a Service Listener for a bundle.
|
boolean |
ServiceRegistry.ungetService(BundleContextImpl context,
ServiceReferenceImpl<?> reference)
Releases the service object referenced by the specified
ServiceReference object. |
void |
ServiceRegistry.unregisterServices(BundleContextImpl context)
Called when the BundleContext is closing to unregister all services
currently registered by the bundle.
|
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.