| Package | Description |
|---|---|
| org.jboss.gravia.runtime | |
| org.jboss.gravia.runtime.spi |
| Modifier and Type | Method and Description |
|---|---|
ServiceReference<?>[] |
ModuleContext.getAllServiceReferences(String className,
String filter)
Returns an array of
ServiceReference objects. |
ServiceReference<T> |
ServiceRegistration.getReference()
Returns a
ServiceReference object for a service being registered. |
ServiceReference<S> |
ServiceTracker.getServiceReference()
Returns a
ServiceReference for one of the services being tracked
by this ServiceTracker. |
ServiceReference<?> |
ServiceEvent.getServiceReference()
Returns a reference to the service that had a change occur in its
lifecycle.
|
<S> ServiceReference<S> |
ModuleContext.getServiceReference(Class<S> clazz)
Returns a
ServiceReference object for a service that implements
and was registered under the name of the specified class. |
ServiceReference<?> |
ModuleContext.getServiceReference(String className)
Returns a
ServiceReference object for a service that implements
and was registered under the specified class. |
ServiceReference<S>[] |
ServiceTracker.getServiceReferences()
Return an array of
ServiceReferences for all services being
tracked by this ServiceTracker. |
ServiceReference<?>[] |
ModuleContext.getServiceReferences(String className,
String filter)
Returns an array of
ServiceReference objects. |
| Modifier and Type | Method and Description |
|---|---|
<S> Collection<ServiceReference<S>> |
ModuleContext.getServiceReferences(Class<S> clazz,
String filter)
Returns a collection of
ServiceReference objects. |
SortedMap<ServiceReference<S>,T> |
ServiceTracker.getTracked()
Return a
SortedMap of the ServiceReferences 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. |
<S> S |
ModuleContext.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.
|
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. |
boolean |
ModuleContext.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.
|
ServiceTracker(ModuleContext context,
ServiceReference<S> reference,
ServiceTrackerCustomizer<S,T> customizer)
Create a
ServiceTracker on the specified ServiceReference
. |
| Modifier and Type | Method and Description |
|---|---|
Set<ServiceReference<?>> |
AbstractModule.getServicesInUseInternal() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
URLStreamHandlerTracker.addingHandler(String protocol,
ServiceReference<URLStreamHandler> sref,
URLStreamHandler handler) |
void |
AbstractModule.addServiceInUse(ServiceReference<?> serviceState) |
void |
RuntimeEventsManager.fireServiceEvent(Module module,
int type,
ServiceReference<?> reference) |
boolean |
NoFilter.match(ServiceReference<?> reference) |
int |
AbstractModule.removeServiceInUse(ServiceReference<?> serviceState) |
protected void |
URLStreamHandlerTracker.removingHandler(String protocol,
ServiceReference<URLStreamHandler> sref,
URLStreamHandler handler) |
Copyright © 2014 JBoss by Red Hat. All rights reserved.