Class CasInitializerFactory_impl
java.lang.Object
org.apache.uima.impl.CasInitializerFactory_impl
org.apache.uima.fit.spring.factory.CasInitializerFactory_impl
- All Implemented Interfaces:
ResourceFactory
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Deprecated
public class CasInitializerFactory_impl
extends CasInitializerFactory_impl
implements org.springframework.context.ApplicationContextAware
Deprecated.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionproduceResource
(Class<? extends Resource> aResourceClass, ResourceSpecifier aSpecifier, Map<String, Object> aAdditionalParams) Deprecated.Produces an appropriateResource
instance from aResourceSpecifier
.void
setApplicationContext
(org.springframework.context.ApplicationContext aApplicationContext) Deprecated.
-
Constructor Details
-
CasInitializerFactory_impl
public CasInitializerFactory_impl()Deprecated.
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext aApplicationContext) throws org.springframework.beans.BeansException Deprecated.- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
produceResource
public Resource produceResource(Class<? extends Resource> aResourceClass, ResourceSpecifier aSpecifier, Map<String, Object> aAdditionalParams) throws ResourceInitializationExceptionDeprecated.Description copied from interface:ResourceFactory
Produces an appropriateResource
instance from aResourceSpecifier
. This version ofproduceResource
takes a Map containing additional parameters to be passed to theResource.initialize(ResourceSpecifier,Map)
method.- Specified by:
produceResource
in interfaceResourceFactory
- Overrides:
produceResource
in classCasInitializerFactory_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 aResource
.aAdditionalParams
- a Map containing additional parameters to pass to theResource.initialize(ResourceSpecifier,Map)
method. May benull
if there are no parameters.- Returns:
- a
Resource
instance. Returnsnull
if this factory does not know how to create a Resource from theResourceSpecifier
provided. - Throws:
ResourceInitializationException
- if a failure occurred during production of the resource- See Also:
-