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
-
Method Summary
Modifier and TypeMethodDescriptiongetUri()
void
load
(DataResource aData) Called by theResourceManager
after this object has been instantiated.
-
Constructor Details
-
SharedModel
public SharedModel()
-
-
Method Details
-
load
Description copied from interface:SharedResourceObject
Called by theResourceManager
after this object has been instantiated. The implementation of this method should read the data from the specifiedDataResource
and use that data to initialize this object.- Specified by:
load
in interfaceSharedResourceObject
- Parameters:
aData
- aDataResource
that provides access to the data for this resource object.- Throws:
ResourceInitializationException
- if a failure occurs during loading.
-
getUri
-