Package org.apache.uima.impl
Class AnalysisEngineFactory_impl
java.lang.Object
org.apache.uima.impl.AnalysisEngineFactory_impl
- All Implemented Interfaces:
ResourceFactory
Resource Factory that handles
AnalysisEngineDescription and TaeDescription
elements.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionproduceResource(Class<? extends Resource> aResourceClass, ResourceSpecifier aSpecifier, Map<String, Object> aAdditionalParams) Produces an appropriateResourceinstance from aResourceSpecifier.
-
Constructor Details
-
AnalysisEngineFactory_impl
public AnalysisEngineFactory_impl()
-
-
Method Details
-
produceResource
public Resource produceResource(Class<? extends Resource> aResourceClass, ResourceSpecifier aSpecifier, Map<String, Object> aAdditionalParams) throws ResourceInitializationExceptionDescription copied from interface:ResourceFactoryProduces an appropriateResourceinstance from aResourceSpecifier. This version ofproduceResourcetakes a Map containing additional parameters to be passed to theResource.initialize(ResourceSpecifier,Map)method.- Specified by:
produceResourcein interfaceResourceFactory- Parameters:
aResourceClass- the class of resource to be produced (NOTE: this is intended to be a standard UIMA interface name such as "TextAnalysisEngine" or "ASB")aSpecifier- an object that specifies how to acquire an instance of aResource.aAdditionalParams- a Map containing additional parameters to pass to theResource.initialize(ResourceSpecifier,Map)method. May benullif there are no parameters.- Returns:
- a
Resourceinstance. Returnsnullif this factory does not know how to create a Resource from theResourceSpecifierprovided. - Throws:
ResourceInitializationException- if a failure occurred during production of the resource- See Also:
-