Package | Description |
---|---|
org.apache.felix.framework | |
org.apache.felix.framework.util | |
org.eclipse.equinox.log | |
org.eclipse.equinox.log.internal | |
org.eclipse.osgi.framework.debug | |
org.eclipse.osgi.framework.internal.core | |
org.eclipse.osgi.framework.internal.protocol | |
org.eclipse.osgi.framework.util | |
org.eclipse.osgi.internal.serviceregistry | |
org.eclipse.osgi.launch |
Provides the Equinox framework launch API.
|
org.osgi.framework |
Framework Package Version 1.7.
|
org.osgi.framework.hooks.service |
Framework Service Hooks Package Version 1.1.
|
org.osgi.service.log |
Log Service Package Version 1.3.
|
org.osgi.util.tracker |
Tracker Package Version 1.5.
|
Modifier and Type | Method and Description |
---|---|
ServiceReference[] |
ServiceRegistry.getRegisteredServices(Bundle bundle) |
ServiceReference[] |
ServiceRegistry.getServicesInUse(Bundle bundle) |
Modifier and Type | Method and Description |
---|---|
<S> Set<ServiceReference<S>> |
Felix.getHooks(Class<S> hookClass) |
<S> Set<ServiceReference<S>> |
ServiceRegistry.getHooks(Class<S> hookClass) |
Modifier and Type | Method and Description |
---|---|
protected void |
Logger.doLog(Bundle bundle,
ServiceReference sr,
int level,
String msg,
Throwable throwable) |
<S> S |
ServiceRegistry.getService(Bundle bundle,
ServiceReference<S> ref) |
Bundle[] |
ServiceRegistry.getUsingBundles(ServiceReference ref) |
void |
Logger.log(ServiceReference sr,
int level,
String msg) |
void |
Logger.log(ServiceReference sr,
int level,
String msg,
Throwable throwable) |
boolean |
FilterImpl.match(ServiceReference sr) |
boolean |
ServiceRegistry.ungetService(Bundle bundle,
ServiceReference ref) |
Modifier and Type | Method and Description |
---|---|
static boolean |
Util.isServiceAssignable(Bundle requester,
ServiceReference ref)
This method determines if the requesting bundle is able to cast
the specified service reference based on class visibility rules
of the underlying modules.
|
Modifier and Type | Method and Description |
---|---|
void |
SecureAction.invokeServiceFindHook(FindHook fh,
BundleContext context,
String name,
String filter,
boolean allServices,
Collection<ServiceReference<?>> references) |
Modifier and Type | Method and Description |
---|---|
void |
Logger.log(ServiceReference<?> sr,
int level,
String message) |
void |
Logger.log(ServiceReference<?> sr,
int level,
String message,
Throwable exception) |
Modifier and Type | Method and Description |
---|---|
ServiceReference |
ExtendedLogEntryImpl.getServiceReference() |
Modifier and Type | Method and Description |
---|---|
Object |
EventAdminAdapter.addingService(ServiceReference<Object> reference) |
void |
ExtendedLogServiceImpl.log(ServiceReference sr,
int level,
String message) |
void |
LoggerImpl.log(ServiceReference sr,
int level,
String message) |
void |
ExtendedLogServiceImpl.log(ServiceReference sr,
int level,
String message,
Throwable exception) |
void |
LoggerImpl.log(ServiceReference sr,
int level,
String message,
Throwable exception) |
void |
EventAdminAdapter.modifiedService(ServiceReference<Object> reference,
Object tracked) |
static void |
EventAdminLogListener.putServiceReferenceProperties(Hashtable<String,Object> properties,
ServiceReference<?> ref) |
void |
EventAdminAdapter.removedService(ServiceReference<Object> reference,
Object tracked) |
Modifier and Type | Method and Description |
---|---|
DebugOptionsListener |
FrameworkDebugOptions.addingService(ServiceReference<DebugOptionsListener> reference) |
void |
FrameworkDebugOptions.modifiedService(ServiceReference<DebugOptionsListener> reference,
DebugOptionsListener service) |
void |
FrameworkDebugOptions.removedService(ServiceReference<DebugOptionsListener> reference,
DebugOptionsListener service) |
Modifier and Type | Method and Description |
---|---|
ServiceReference<?>[] |
BundleContextImpl.getAllServiceReferences(String clazz,
String filter) |
ServiceReference<?>[] |
BundleFragment.getRegisteredServices()
Provides a list of
ServiceReference s for the services
registered by this bundle
or null if the bundle has no registered
services. |
ServiceReference<?>[] |
BundleHost.getRegisteredServices()
Provides a list of
ServiceReference s for the services
registered by this bundle
or null if the bundle has no registered
services. |
ServiceReference<?>[] |
EquinoxLauncher.getRegisteredServices() |
<S> ServiceReference<S> |
BundleContextImpl.getServiceReference(Class<S> clazz) |
ServiceReference<?> |
BundleContextImpl.getServiceReference(String clazz)
Get a service reference.
|
ServiceReference<?>[] |
BundleContextImpl.getServiceReferences(String clazz,
String filter)
Returns a list of ServiceReference objects.
|
ServiceReference<?>[] |
BundleFragment.getServicesInUse()
Provides a list of
ServiceReference s for the
services this bundle is using,
or null if the bundle is not using any services. |
ServiceReference<?>[] |
BundleHost.getServicesInUse()
Provides a list of
ServiceReference s for the
services this bundle is using,
or null if the bundle is not using any services. |
ServiceReference<?>[] |
EquinoxLauncher.getServicesInUse() |
Modifier and Type | Method and Description |
---|---|
<S> Collection<ServiceReference<S>> |
BundleContextImpl.getServiceReferences(Class<S> clazz,
String filter) |
Modifier and Type | Method and Description |
---|---|
FrameworkConsole |
ConsoleManager.addingService(ServiceReference<ConsoleSession> reference) |
<S> S |
BundleContextImpl.getService(ServiceReference<S> reference)
Get a service's service object.
|
boolean |
FilterImpl.match(ServiceReference<?> reference)
Filter using a service's properties.
|
void |
ConsoleManager.modifiedService(ServiceReference<ConsoleSession> reference,
FrameworkConsole service) |
void |
ConsoleManager.removedService(ServiceReference<ConsoleSession> reference,
FrameworkConsole service) |
boolean |
BundleContextImpl.ungetService(ServiceReference<?> reference)
Unget a service's service object.
|
Modifier and Type | Field and Description |
---|---|
protected ServiceReference<ContentHandler> |
ContentHandlerProxy.contentHandlerServiceReference |
protected ServiceReference<URLStreamHandlerService> |
URLStreamHandlerProxy.urlStreamServiceReference |
Modifier and Type | Field and Description |
---|---|
protected ServiceTracker<ContentHandler,ServiceReference<ContentHandler>> |
ContentHandlerProxy.contentHandlerServiceTracker |
protected ServiceTracker<URLStreamHandlerService,ServiceReference<URLStreamHandlerService>> |
URLStreamHandlerProxy.urlStreamHandlerServiceTracker |
Modifier and Type | Method and Description |
---|---|
ServiceReference<ContentHandler> |
ContentHandlerProxy.addingService(ServiceReference<ContentHandler> reference) |
ServiceReference<URLStreamHandlerService> |
URLStreamHandlerProxy.addingService(ServiceReference<URLStreamHandlerService> reference) |
Constructor and Description |
---|
ContentHandlerProxy(String contentType,
ServiceReference<ContentHandler> reference,
BundleContext context) |
URLStreamHandlerFactoryProxyFor15(String protocol,
ServiceReference<URLStreamHandlerService> reference,
BundleContext context) |
URLStreamHandlerProxy(String protocol,
ServiceReference<URLStreamHandlerService> reference,
BundleContext context) |
Modifier and Type | Method and Description |
---|---|
<S> S |
SecureAction.getService(ServiceReference<S> reference,
BundleContext context)
Gets a service object.
|
Modifier and Type | Class and Description |
---|---|
class |
ServiceReferenceImpl<S>
A reference to a service.
|
Modifier and Type | Method and Description |
---|---|
ServiceReference<S> |
ServiceRegistrationImpl.getReference()
Returns a
ServiceReferenceImpl object for this registration. |
Modifier and Type | Method and Description |
---|---|
ServiceReference<?>[] |
Equinox.getRegisteredServices() |
ServiceReference<?>[] |
Equinox.getServicesInUse() |
Modifier and Type | Method and Description |
---|---|
ServiceReference<?>[] |
BundleContext.getAllServiceReferences(String clazz,
String filter)
Returns an array of
ServiceReference objects. |
ServiceReference<S> |
ServiceRegistration.getReference()
Returns a
ServiceReference object for a service being registered. |
ServiceReference<?>[] |
Bundle.getRegisteredServices()
Returns this bundle's
ServiceReference list for all services it
has registered or null if this bundle has no registered services. |
ServiceReference<?> |
ServiceEvent.getServiceReference()
Returns a reference to the service that had a change occur in its
lifecycle.
|
<S> ServiceReference<S> |
BundleContext.getServiceReference(Class<S> clazz)
Returns a
ServiceReference object for a service that implements
and was registered under the name of the specified class. |
ServiceReference<?> |
BundleContext.getServiceReference(String clazz)
Returns a
ServiceReference object for a service that implements
and was registered under the specified class. |
ServiceReference<?>[] |
BundleContext.getServiceReferences(String clazz,
String filter)
Returns an array of
ServiceReference objects. |
ServiceReference<?>[] |
Bundle.getServicesInUse()
Returns this bundle's
ServiceReference list for all services it
is using or returns null if this bundle is not using any
services. |
Modifier and Type | Method and Description |
---|---|
<S> Collection<ServiceReference<S>> |
BundleContext.getServiceReferences(Class<S> clazz,
String filter)
Returns a collection of
ServiceReference objects. |
Modifier and Type | Method and Description |
---|---|
<S> S |
BundleContext.getService(ServiceReference<S> reference)
Returns the service object referenced by the specified
ServiceReference object. |
boolean |
Filter.match(ServiceReference<?> reference)
Filter using a service's properties.
|
boolean |
BundleContext.ungetService(ServiceReference<?> reference)
Releases the service object referenced by the specified
ServiceReference object. |
Constructor and Description |
---|
ServiceEvent(int type,
ServiceReference<?> reference)
Creates a new service event object.
|
ServicePermission(ServiceReference<?> reference,
String actions)
Creates a new requested
ServicePermission object to be used by
code that must perform checkPermission for the get
action. |
Modifier and Type | Method and Description |
---|---|
void |
FindHook.find(BundleContext context,
String name,
String filter,
boolean allServices,
Collection<ServiceReference<?>> references)
Find hook method.
|
Modifier and Type | Method and Description |
---|---|
ServiceReference |
LogEntry.getServiceReference()
Returns the
ServiceReference object for the service associated
with this LogEntry object. |
Modifier and Type | Method and Description |
---|---|
void |
LogService.log(ServiceReference sr,
int level,
String message)
Logs a message associated with a specific
ServiceReference
object. |
void |
LogService.log(ServiceReference sr,
int level,
String message,
Throwable exception)
Logs a message with an exception associated and a
ServiceReference object. |
Modifier and Type | Method and Description |
---|---|
ServiceReference<S> |
ServiceTracker.getServiceReference()
Returns a
ServiceReference for one of the services being tracked
by this ServiceTracker . |
ServiceReference<S>[] |
ServiceTracker.getServiceReferences()
Return an array of
ServiceReference s for all services being
tracked by this ServiceTracker . |
Modifier and Type | Method and Description |
---|---|
SortedMap<ServiceReference<S>,T> |
ServiceTracker.getTracked()
Return a
SortedMap of the ServiceReference s and service
objects for all services being tracked by this ServiceTracker . |
Modifier and Type | Method and Description |
---|---|
T |
ServiceTrackerCustomizer.addingService(ServiceReference<S> reference)
A service is being added to the
ServiceTracker . |
T |
ServiceTracker.addingService(ServiceReference<S> reference)
Default implementation of the
ServiceTrackerCustomizer.addingService method. |
T |
ServiceTracker.getService(ServiceReference<S> reference)
Returns the service object for the specified
ServiceReference if
the specified referenced service is being tracked by this
ServiceTracker . |
void |
ServiceTrackerCustomizer.modifiedService(ServiceReference<S> reference,
T service)
A service tracked by the
ServiceTracker has been modified. |
void |
ServiceTracker.modifiedService(ServiceReference<S> reference,
T service)
Default implementation of the
ServiceTrackerCustomizer.modifiedService method. |
void |
ServiceTracker.remove(ServiceReference<S> reference)
Remove a service from this
ServiceTracker . |
void |
ServiceTrackerCustomizer.removedService(ServiceReference<S> reference,
T service)
A service tracked by the
ServiceTracker has been removed. |
void |
ServiceTracker.removedService(ServiceReference<S> reference,
T service)
Default implementation of the
ServiceTrackerCustomizer.removedService method. |
Constructor and Description |
---|
ServiceTracker(BundleContext context,
ServiceReference<S> reference,
ServiceTrackerCustomizer<S,T> customizer)
Create a
ServiceTracker on the specified ServiceReference
. |
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.