Class ExternalResourceExample.SharedModel
java.lang.Object
org.apache.uima.fit.examples.resource.ExternalResourceExample.SharedModel
- All Implemented Interfaces:
SharedResourceObject
- Enclosing class:
- ExternalResourceExample
public static final class ExternalResourceExample.SharedModel
extends Object
implements SharedResourceObject
Simple model that only stores the URI it was loaded from. Normally data would be loaded from
the URI instead and made accessible through methods in this class. This simple example only
allows to access the URI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUri()voidload(DataResource aData) Called by theResourceManagerafter this object has been instantiated.
-
Constructor Details
-
SharedModel
public SharedModel()
-
-
Method Details
-
load
Description copied from interface:SharedResourceObjectCalled 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.- Specified by:
loadin interfaceSharedResourceObject- Parameters:
aData- aDataResourcethat provides access to the data for this resource object.- Throws:
ResourceInitializationException- if a failure occurs during loading.
-
getUri
-