Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.uima.resource
Interface SharedResourceObject

    public interface SharedResourceObject

The `SharedResourceObject` interface must be implemented by all classes that provide access to resource data. Object that implement this interface may be made accessible to Annotators via the `ResourceManager`.

This interface's `load(DataResource)` method is called by the ResourceManager after the `SharedResourceObject` has been instantiated. A `DataResource` is passes as a parameter to this method. The implementation of the `load` method should read the data from the `DataResource` and use that data to initialize this object.

Method Summary
`void` | `load(DataResource aData)` Called by the `ResourceManager` after this object has been instantiated.

Method Detail

### load

    void load(DataResource aData)
              throws ResourceInitializationException

  Called by the `ResourceManager` after this object has been instantiated. The implementation of this method should read the data from the specified `DataResource` and use that data to initialize this object.

  Parameters:
    `aData` - a `DataResource` that provides access to the data for this resource object.
  Throws:
    `ResourceInitializationException` - if a failure occurs during loading.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007 The Apache Software Foundation. All Rights Reserved.