Class SpringContextResourceManager

java.lang.Object
org.apache.uima.resource.impl.ResourceManager_impl
org.apache.uima.fit.spring.SpringContextResourceManager
All Implemented Interfaces:
ResourceManager, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class SpringContextResourceManager extends ResourceManager_impl implements org.springframework.context.ApplicationContextAware
Allowing UIMA components to access beans from a context.
  • Constructor Details

    • SpringContextResourceManager

      public SpringContextResourceManager()
  • Method Details

    • initializeExternalResources

      public void initializeExternalResources(ResourceManagerConfiguration aConfiguration, String aQualifiedContextName, Map<String,Object> aAdditionalParams) throws ResourceInitializationException
      Description copied from interface: ResourceManager
      Initializes all external resources declared in a ResourceCreationSpecifier. Multi-threading: may be called on multiple threads. Initialization should be done once, on the first call External resources have a Container class representing the resource, which are instances of Resource. This may act as the implementation class, or they may also have a separately specified implementation class, which may or may not implement Resource. As part of the initialization of the Container class, by default, External Resource Bindings are processed to hook them up with defined External Resources, using the default implementation of resolveAndValidateResourceDependencies.
      Specified by:
      initializeExternalResources in interface ResourceManager
      Overrides:
      initializeExternalResources in class ResourceManager_impl
      Parameters:
      aConfiguration - the ResourceManagerConfiguration containing resource declarations and bindings
      aQualifiedContextName - qualified name of UimaContext for the component (e.g. analysis engine) that is declaring these external resources
      aAdditionalParams - additional parameters to be passed to resource initialize methods
      Throws:
      ResourceInitializationException - if an initialization failure occurs
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext aApplicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • setAutowireEnabled

      public void setAutowireEnabled(boolean aAutowireEnabled)
    • isAutowireEnabled

      public boolean isAutowireEnabled()