/** * Wraps the synchronous form, using the executeRunnable method to schedule * it. */ public void resolveIdentifierAsynch(final T2Reference id, final Set<Class<ExternalReferenceSPI>> ensureTypes, final ReferenceContext context, final ReferenceServiceResolutionCallback callback) throws ReferenceServiceException { checkServices(); Runnable r = new Runnable() { public void run() { try { callback.identifierResolved(resolveIdentifier(id, ensureTypes, context)); } catch (ReferenceServiceException rse) { callback.resolutionFailed(rse); } } }; executeRunnable(r); }
/** * Wraps the synchronous form, using the executeRunnable method to schedule * it. */ public void resolveIdentifierAsynch(final T2Reference id, final Set<Class<ExternalReferenceSPI>> ensureTypes, final ReferenceContext context, final ReferenceServiceResolutionCallback callback) throws ReferenceServiceException { checkServices(); Runnable r = new Runnable() { public void run() { try { callback.identifierResolved(resolveIdentifier(id, ensureTypes, context)); } catch (ReferenceServiceException rse) { callback.resolutionFailed(rse); } } }; executeRunnable(r); }
/** * Wraps the synchronous form, using the executeRunnable method to schedule * it. */ public void resolveIdentifierAsynch(final T2Reference id, final Set<Class<ExternalReferenceSPI>> ensureTypes, final ReferenceContext context, final ReferenceServiceResolutionCallback callback) throws ReferenceServiceException { checkServices(); Runnable r = new Runnable() { public void run() { try { callback.identifierResolved(resolveIdentifier(id, ensureTypes, context)); } catch (ReferenceServiceException rse) { callback.resolutionFailed(rse); } } }; executeRunnable(r); }