Class CasConsumerFactory_impl
java.lang.Object
org.apache.uima.impl.CasConsumerFactory_impl
org.apache.uima.fit.spring.factory.CasConsumerFactory_impl
- All Implemented Interfaces:
- ResourceFactory,- org.springframework.beans.factory.Aware,- org.springframework.context.ApplicationContextAware
public class CasConsumerFactory_impl
extends CasConsumerFactory_impl
implements org.springframework.context.ApplicationContextAware
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionproduceResource(Class<? extends Resource> aResourceClass, ResourceSpecifier aSpecifier, Map<String, Object> aAdditionalParams) Produces an appropriateResourceinstance from aResourceSpecifier.voidsetApplicationContext(org.springframework.context.ApplicationContext aApplicationContext) 
- 
Constructor Details- 
CasConsumerFactory_implpublic CasConsumerFactory_impl()
 
- 
- 
Method Details- 
setApplicationContextpublic void setApplicationContext(org.springframework.context.ApplicationContext aApplicationContext) throws org.springframework.beans.BeansException - Specified by:
- setApplicationContextin interface- org.springframework.context.ApplicationContextAware
- Throws:
- org.springframework.beans.BeansException
 
- 
produceResourcepublic 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 interface- ResourceFactory
- Overrides:
- produceResourcein class- CasConsumerFactory_impl
- 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 a- Resource.
- aAdditionalParams- a Map containing additional parameters to pass to the- Resource.initialize(ResourceSpecifier,Map)method. May be- nullif 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:
 
 
-