Package | Description |
---|---|
org.osgi.framework |
Framework Package Version 1.5.
|
org.osgi.service.cm |
Configuration Admin Package Version 1.3.
|
org.osgi.service.component |
Service Component Package Version 1.1.
|
org.osgi.service.log |
Log Service Package Version 1.3.
|
org.osgi.service.remoteserviceadmin |
Remote Service Admin Package Version 1.0.
|
org.osgi.service.useradmin |
User Admin Package Version 1.1.
|
org.osgi.util.tracker |
Tracker Package Version 1.4.
|
Modifier and Type | Method and Description |
---|---|
ServiceReference[] |
BundleContext.getAllServiceReferences(String clazz,
String filter)
Returns an array of
ServiceReference objects. |
ServiceReference |
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.
|
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 |
---|---|
Object |
BundleContext.getService(ServiceReference 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 |
---|---|
ServiceReference |
ConfigurationEvent.getReference()
Return the
ServiceReference object of the Configuration
Admin service that created this event. |
Modifier and Type | Method and Description |
---|---|
void |
ConfigurationPlugin.modifyConfiguration(ServiceReference reference,
Dictionary properties)
View and possibly modify the a set of configuration properties before
they are sent to the Managed Service or the Managed Service Factory.
|
Constructor and Description |
---|
ConfigurationEvent(ServiceReference reference,
int type,
String factoryPid,
String pid)
Constructs a
ConfigurationEvent object from the given
ServiceReference object, event type, and pids. |
Modifier and Type | Method and Description |
---|---|
ServiceReference |
ComponentContext.getServiceReference()
If the component instance is registered as a service using the
service element, then this method returns the service
reference of the service provided by this component instance. |
Modifier and Type | Method and Description |
---|---|
Object |
ComponentContext.locateService(String name,
ServiceReference reference)
Returns the service object for the specified reference name and
ServiceReference . |
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 |
ExportReference.getExportedService()
Return the service being exported.
|
ServiceReference |
ImportReference.getImportedService()
Return the Service Reference for the proxy for the endpoint.
|
Modifier and Type | Method and Description |
---|---|
Collection<ExportRegistration> |
RemoteServiceAdmin.exportService(ServiceReference reference,
Map<String,Object> properties)
Export a service to a given Endpoint.
|
Constructor and Description |
---|
EndpointDescription(ServiceReference reference,
Map<String,Object> properties)
Create an Endpoint Description based on a Service Reference and a Map of
properties.
|
Modifier and Type | Method and Description |
---|---|
ServiceReference |
UserAdminEvent.getServiceReference()
Gets the
ServiceReference object of the User Admin service
that generated this event. |
Constructor and Description |
---|
UserAdminEvent(ServiceReference ref,
int type,
Role role)
Constructs a
UserAdminEvent object from the given
ServiceReference object, event type, and Role
object. |
Modifier and Type | Method and Description |
---|---|
ServiceReference |
ServiceTracker.getServiceReference()
Returns a
ServiceReference for one of the services being
tracked by this ServiceTracker . |
ServiceReference[] |
ServiceTracker.getServiceReferences()
Return an array of
ServiceReference s for all services being
tracked by this ServiceTracker . |
Modifier and Type | Method and Description |
---|---|
Object |
ServiceTrackerCustomizer.addingService(ServiceReference reference)
A service is being added to the
ServiceTracker . |
Object |
ServiceTracker.addingService(ServiceReference reference)
Default implementation of the
ServiceTrackerCustomizer.addingService method. |
Object |
ServiceTracker.getService(ServiceReference reference)
Returns the service object for the specified
ServiceReference if the specified referenced service is
being tracked by this ServiceTracker . |
void |
ServiceTrackerCustomizer.modifiedService(ServiceReference reference,
Object service)
A service tracked by the
ServiceTracker has been modified. |
void |
ServiceTracker.modifiedService(ServiceReference reference,
Object service)
Default implementation of the
ServiceTrackerCustomizer.modifiedService method. |
void |
ServiceTracker.remove(ServiceReference reference)
Remove a service from this
ServiceTracker . |
void |
ServiceTrackerCustomizer.removedService(ServiceReference reference,
Object service)
A service tracked by the
ServiceTracker has been removed. |
void |
ServiceTracker.removedService(ServiceReference reference,
Object service)
Default implementation of the
ServiceTrackerCustomizer.removedService method. |
Constructor and Description |
---|
ServiceTracker(BundleContext context,
ServiceReference reference,
ServiceTrackerCustomizer customizer)
Create a
ServiceTracker on the specified
ServiceReference . |
Copyright © 2018 JBoss by Red Hat. All rights reserved.