Class AnalysisEngineServiceAdapter

All Implemented Interfaces:
AnalysisEngine, TextAnalysisEngine, CasObjectProcessor, CasProcessor, CasConsumer, ConfigurableResource, Resource

public abstract class AnalysisEngineServiceAdapter extends AnalysisEngineImplBase implements TextAnalysisEngine, CasConsumer
Base class for analysis engine service adapters. Implements the AnalysisEngine interface by communicating with an Analysis Engine service. This insulates the application from having to know whether it is calling a local AnalysisEngine or a remote service.

Subclasses must provide an implementation of the AnalysisEngineImplBase.initialize(ResourceSpecifier,Map) method, which must create an AnalysisEngineServiceStub object that can communicate with the remote service. The stub must be passed to the setStub(AnalysisEngineServiceStub) method of this class.