Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

Public Member Functions

org::apache::uima::ResourceFactory Interface Reference

Inheritance diagram for org::apache::uima::ResourceFactory:
Inheritance graph

List of all members.

Public Member Functions

Resource produceResource (Class<?extends Resource > aResourceClass, ResourceSpecifier aSpecifier, Map< String, Object > aAdditionalParams) throws ResourceInitializationException

Detailed Description

A ResourceFactory is used to acquire instances of Resources.

The method produceResource(Class,ResourceSpecifier,Map) is used to produce an instance of a Resource. The input to this method is a ResourceSpecifier, which contains all of the information that this factory can use to acquire a reference to the resource.

Most applications will not need to interact with this interface. Applications will generally create resources using the static methods on the org.apache.uima.UIMAFramework class.

Note that multiple threads may attempt to manufacture resources simulatenously, so implementations of this interface MUST be threadsafe.

Developers needing to provide their own ResourceFactory may wish to consider using the provided org.apache.uima.util.SimpleResourceFactory implementation.

Definition at line 49 of file ResourceFactory.java.

The documentation for this interface was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index