public abstract class AbstractCachedService<T extends IServiceResult>
extends java.lang.Object
PrecomputedServiceRegistry.| Constructor and Description |
|---|
AbstractCachedService() |
| Modifier and Type | Method and Description |
|---|---|
abstract T |
compute(IXtextWebDocument it,
org.eclipse.xtext.util.CancelIndicator cancelIndicator)
Perform the actual computations to obtain a result.
|
T |
getResult(XtextWebDocumentAccess it)
If a cached result is available, that instance is returned.
|
public T getResult(XtextWebDocumentAccess it)
compute(IXtextWebDocument, CancelIndicator).public abstract T compute(IXtextWebDocument it, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
getResult(XtextWebDocumentAccess) instead
in order to avoid duplicate computations.