public class SpringImporter extends Object implements ServiceImporter
| Constructor and Description |
|---|
SpringImporter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
importService(ImportedServiceDescriptor serviceDescriptor)
Import a service from Spring by looking it up in the ApplicationContext.
|
boolean |
isAvailable(Object instance)
Ask if the service is available or not.
|
public Object importService(ImportedServiceDescriptor serviceDescriptor) throws ServiceImporterException
importService in interface ServiceImporterserviceDescriptor - The service descriptor.ServiceImporterException - if unable to import the servicepublic boolean isAvailable(Object instance)
ServiceImporterisAvailable in interface ServiceImporterinstance - the instance to be checked