public class OSGiServiceImporter extends Object implements ServiceImporter
| Modifier and Type | Class and Description |
|---|---|
static class |
OSGiServiceImporter.ServiceTrackerHandler |
| Constructor and Description |
|---|
OSGiServiceImporter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
importService(ImportedServiceDescriptor serviceDescriptor)
Imports an instance of the service type described in the service descriptor.
|
boolean |
isAvailable(Object instance)
Ask if the service is available or not.
|
public Object importService(ImportedServiceDescriptor serviceDescriptor) throws ServiceImporterException
ServiceImporterimportService in interface ServiceImporterserviceDescriptor - The service descriptor.ServiceImporterException - if import failed.public boolean isAvailable(Object instance)
ServiceImporterisAvailable in interface ServiceImporterinstance - the instance to be checked