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