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

Public Member Functions | Protected Attributes | Static Private Attributes

org::apache::uima::util::SimpleResourceFactory Class Reference

Inheritance diagram for org::apache::uima::util::SimpleResourceFactory:
Inheritance graph
Collaboration diagram for org::apache::uima::util::SimpleResourceFactory:
Collaboration graph

List of all members.

Public Member Functions

void addMapping (Class<?extends ResourceSpecifier > aSpecifierInterface, Class<?extends Resource > aResourceClass)
void addMapping (String aSpecifierInterfaceName, String aResourceClassName) throws ClassNotFoundException
Resource produceResource (Class<?extends Resource > aResourceClass, ResourceSpecifier aSpecifier, Map< String, Object > aAdditionalParams) throws ResourceInitializationException

Protected Attributes

Map< Class<?extends
ResourceSpecifier >, List
< Class<?extends Resource > > > 

Static Private Attributes

static final Class
< SimpleResourceFactory
CLASS_NAME = SimpleResourceFactory.class
static final String LOG_RESOURCE_BUNDLE = "org.apache.uima.impl.log_messages"

Detailed Description

A simple implementation of a org.apache.uima.ResourceFactory. This implementation maintains a Map between the ResourceSpecifier sub-interface name (e.g. AnalysisEngineDescription) and the class name of the resource to be constructed from specifiers of that type.

UIMA developers who introduce new types of Resources or ResourceSpecifiers may create an instance of this class and use the addMapping(Class,Class) method to register a mapping between the ResourceSpecifier interface and the Class of the Resource that is to be constructed from it. The SimpleResourceFactory should then be registered with the framework by calling UIMAFramework#getResourceFactory().registerFactory(Class,ResourceFactory);

Definition at line 50 of file SimpleResourceFactory.java.

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

Generated by  Doxygen 1.6.0   Back to index