That is we *must* resolve the following:
Example implementation:
public <T> T resolve( Class<T> adaptee, IProgressMonitor monitor ) throws IOException { if (monitor == null) monitor = new NullProgressMonitor(); if (adaptee == null) throw new NullPointerException("No adaptor specified" ); if (adaptee.isAssignableFrom(API.class)) { return adaptee.cast(getAPI(monitor)); } return super.resolve(adaptee, monitor); }
@param adaptee
@param monitor
@return instance of adaptee, or null if unavailable (IServiceInfo and List
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|