Package org.apache.uima.resource.impl
Class ResourceManagerPearWrapper_impl
java.lang.Object
org.apache.uima.resource.impl.ResourceManager_impl
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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.uima.resource.impl.ResourceManager_impl
ResourceManager_impl.ResourceRegistration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RelativePathResolver
Object used for resolving relative paths.private UIMAClassLoader
UIMA extension ClassLoader.Fields inherited from class org.apache.uima.resource.impl.ResourceManager_impl
EMPTY_RESOURCE_CLASS, LOG_RESOURCE_BUNDLE, mCasManager, mInternalParameterizedResourceImplClassMap, mInternalResourceRegistrationMap, mParameterizedResourceImplClassMap, mParameterizedResourceInstanceMap, mResourceMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the UIMA extension class loader.protected RelativePathResolver
void
initializeFromParentResourceManager
(ResourceManager resourceManager) Deprecated.void
setExtensionClassPath
(ClassLoader parent, 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
(String classpath, boolean resolveResource) /**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, setExtensionClassPath
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
-
Field Details
-
uimaCL
UIMA extension ClassLoader. ClassLoader is created if an extension classpath is specified at the ResourceManager -
mRelativePathResolver
Object used for resolving relative paths. This is built by parsing the data path.
-
-
Constructor Details
-
ResourceManagerPearWrapper_impl
public ResourceManagerPearWrapper_impl()
-
-
Method Details
-
initializeFromParentResourceManager
Deprecated.Initializes from the parent, a newResourceManagerForPearWrapper_impl
.- Specified by:
initializeFromParentResourceManager
in interfaceResourceManagerPearWrapper
- Parameters:
resourceManager
- the parent ResourceManager
-
setExtensionClassPath
public void setExtensionClassPath(String classpath, boolean resolveResource) throws MalformedURLException Description copied from class:ResourceManager_impl
/**- Specified by:
setExtensionClassPath
in interfaceResourceManager
- Overrides:
setExtensionClassPath
in classResourceManager_impl
- Parameters:
classpath
- extension ClassLoader classpathresolveResource
- if true ClassLoad resolves resources- Throws:
MalformedURLException
- if a malformed URL has occurred in the classpath string.- See Also:
-
setExtensionClassPath
public void setExtensionClassPath(ClassLoader parent, String classpath, boolean resolveResource) throws 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 interfaceResourceManager
- Overrides:
setExtensionClassPath
in classResourceManager_impl
- Parameters:
parent
- parent ClassLoader for the extension ClassLoaderclasspath
- extension ClassLoader classpathresolveResource
- if true ClassLoad resolves resources- Throws:
MalformedURLException
- if a malformed URL has occurred in the classpath string.- See Also:
-
getExtensionClassLoader
Description copied from interface:ResourceManager
Returns the UIMA extension class loader.- Specified by:
getExtensionClassLoader
in interfaceResourceManager
- Overrides:
getExtensionClassLoader
in classResourceManager_impl
- Returns:
- ClassLoader - returns the UIMA extension class loader of null if it is not available.
- See Also:
-
getRelativePathResolver
- Overrides:
getRelativePathResolver
in classResourceManager_impl
-