Package org.apache.uima.resource
Interface SharedResourceObject
-
public interface SharedResourceObjectTheSharedResourceObjectinterface must be implemented by all classes that provide access to resource data. Object that implement this interface may be made accessible to Annotators via theResourceManager.This interface's
load(DataResource)method is called by the ResourceManager after theSharedResourceObjecthas been instantiated. ADataResourceis passes as a parameter to this method. The implementation of theloadmethod should read the data from theDataResourceand use that data to initialize this object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidload(DataResource aData)Called by theResourceManagerafter this object has been instantiated.
-
-
-
Method Detail
-
load
void load(DataResource aData) throws ResourceInitializationException
Called by theResourceManagerafter this object has been instantiated. The implementation of this method should read the data from the specifiedDataResourceand use that data to initialize this object.- Parameters:
aData- aDataResourcethat provides access to the data for this resource object.- Throws:
ResourceInitializationException- if a failure occurs during loading.
-
-