|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qi4j.library.osgi.OSGiServiceImporter
public class OSGiServiceImporter
Import OSGi services in a Qi4j Module.
Nested Class Summary | |
---|---|
static class |
OSGiServiceImporter.ServiceTrackerHandler
|
Constructor Summary | |
---|---|
OSGiServiceImporter()
|
Method Summary | |
---|---|
java.lang.Object |
importService(ImportedServiceDescriptor serviceDescriptor)
Imports an instance of the service type described in the service descriptor. |
boolean |
isAvailable(java.lang.Object instance)
Ask if the service is available or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OSGiServiceImporter()
Method Detail |
---|
public java.lang.Object importService(ImportedServiceDescriptor serviceDescriptor) throws ServiceImporterException
ServiceImporter
importService
in interface ServiceImporter
serviceDescriptor
- The service descriptor.
ServiceImporterException
- if import failed.public boolean isAvailable(java.lang.Object instance)
ServiceImporter
isAvailable
in interface ServiceImporter
instance
- the instance to be checked
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |