org.apache.uima.resource.impl
Class ResourceManagerPearWrapper_impl

java.lang.Object
  extended by org.apache.uima.resource.impl.ResourceManager_impl
      extended by org.apache.uima.resource.impl.ResourceManagerPearWrapper_impl
All Implemented Interfaces:
ResourceManager, ResourceManagerPearWrapper

public class ResourceManagerPearWrapper_impl
extends ResourceManager_impl
implements ResourceManagerPearWrapper

Reference implementation of ResourceManager, used for PearAnalysisEngineWrapper. It is a subclass of ResourceManager_impl, with a different classpath/datapath but everything else referring to the same objects as the parent.


Field Summary
 
Fields inherited from class org.apache.uima.resource.impl.ResourceManager_impl
LOG_RESOURCE_BUNDLE, mCasManager, mInternalParameterizedResourceImplClassMap, mInternalResourceRegistrationMap, mParameterizedResourceImplClassMap, mParameterizedResourceInstanceMap, mResourceMap
 
Constructor Summary
ResourceManagerPearWrapper_impl()
           
 
Method Summary
 java.lang.ClassLoader getExtensionClassLoader()
          Returns the UIMA extension class loader.
protected  RelativePathResolver getRelativePathResolver()
           
 void initializeFromParentResourceManager(ResourceManager resourceManager)
          Initializes from the parent, a new ResourceManagerForPearWrapper_impl.
 void setExtensionClassPath(java.lang.ClassLoader parent, java.lang.String classpath, boolean resolveResource)
          Sets the classpath for the UIMA extension ClassLoader and specifies if the extension ClassLoader should also be used to resolve resources.
 void setExtensionClassPath(java.lang.String classpath, boolean resolveResource)
          Sets the classpath for the UIMA extension ClassLoader and specifies if the extension ClassLoader should also be used to resolve resources.
 
Methods inherited from class org.apache.uima.resource.impl.ResourceManager_impl
getCasManager, getDataPath, getImportCache, getResource, getResource, getResourceAsStream, getResourceAsStream, getResourceClass, getResourceURL, getResourceURL, initializeExternalResources, resolveAndValidateResourceDependencies, resolveRelativePath, setCasManager, setDataPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.uima.resource.ResourceManager
getCasManager, getDataPath, getImportCache, getResource, getResource, getResourceAsStream, getResourceAsStream, getResourceClass, getResourceURL, getResourceURL, initializeExternalResources, resolveAndValidateResourceDependencies, resolveRelativePath, setCasManager, setDataPath
 

Constructor Detail

ResourceManagerPearWrapper_impl

public ResourceManagerPearWrapper_impl()
Method Detail

initializeFromParentResourceManager

public void initializeFromParentResourceManager(ResourceManager resourceManager)
Initializes from the parent, a new ResourceManagerForPearWrapper_impl.

Specified by:
initializeFromParentResourceManager in interface ResourceManagerPearWrapper

setExtensionClassPath

public void setExtensionClassPath(java.lang.String classpath,
                                  boolean resolveResource)
                           throws java.net.MalformedURLException
Description copied from interface: ResourceManager
Sets the classpath for the UIMA extension ClassLoader and specifies if the extension ClassLoader should also be used to resolve resources.

Specified by:
setExtensionClassPath in interface ResourceManager
Overrides:
setExtensionClassPath in class ResourceManager_impl
Parameters:
classpath - extension ClassLoader classpath
resolveResource - if true ClassLoad resolves resources
Throws:
java.net.MalformedURLException - if a malformed URL has occurred in the classpath string.
See Also:
ResourceManager.setExtensionClassPath(java.lang.String, boolean)

setExtensionClassPath

public void setExtensionClassPath(java.lang.ClassLoader parent,
                                  java.lang.String classpath,
                                  boolean resolveResource)
                           throws java.net.MalformedURLException
Description copied from interface: ResourceManager
Sets the classpath for the UIMA extension ClassLoader and specifies if the extension ClassLoader should also be used to resolve resources. Also allows a parent ClassLoader to be specified.

Specified by:
setExtensionClassPath in interface ResourceManager
Overrides:
setExtensionClassPath in class ResourceManager_impl
Parameters:
parent - parent ClassLoader for the extension ClassLoader
classpath - extension ClassLoader classpath
resolveResource - if true ClassLoad resolves resources
Throws:
java.net.MalformedURLException - if a malformed URL has occurred in the classpath string.
See Also:
ResourceManager.setExtensionClassPath(ClassLoader,java.lang.String, boolean)

getExtensionClassLoader

public java.lang.ClassLoader getExtensionClassLoader()
Description copied from interface: ResourceManager
Returns the UIMA extension class loader.

Specified by:
getExtensionClassLoader in interface ResourceManager
Overrides:
getExtensionClassLoader in class ResourceManager_impl
Returns:
ClassLoader - returns the UIMA extension class loader of null if it is not available.
See Also:
ResourceManager.getExtensionClassLoader()

getRelativePathResolver

protected RelativePathResolver getRelativePathResolver()
Overrides:
getRelativePathResolver in class ResourceManager_impl


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.