Class JndiResourceLocator
java.lang.Object
org.apache.uima.resource.Resource_ImplBase
org.apache.uima.fit.component.Resource_ImplBase
org.apache.uima.fit.factory.locator.JndiResourceLocator
- All Implemented Interfaces:
ExternalResourceAware
,ExternalResourceLocator
,org.apache.uima.resource.Resource
Locate an object via JNDI.
-
Field Summary
Fields inherited from interface org.apache.uima.resource.Resource
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_EXTERNAL_OVERRIDE_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
initialize
(org.apache.uima.resource.ResourceSpecifier aSpecifier, Map aAdditionalParams) Methods inherited from class org.apache.uima.fit.component.Resource_ImplBase
afterResourcesInitialized, getResourceName
Methods inherited from class org.apache.uima.resource.Resource_ImplBase
destroy, getCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, loadUserClass, loadUserClassOrThrow, setContextHolder, setContextHolderX, setLogger, setMetaData, withContextHolder
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.Resource
destroy, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger
-
Field Details
-
PARAM_NAME
The name of the JNDI resource to look up.- See Also:
-
-
Constructor Details
-
JndiResourceLocator
public JndiResourceLocator()
-
-
Method Details
-
initialize
public boolean initialize(org.apache.uima.resource.ResourceSpecifier aSpecifier, Map aAdditionalParams) throws org.apache.uima.resource.ResourceInitializationException - Specified by:
initialize
in interfaceorg.apache.uima.resource.Resource
- Overrides:
initialize
in classResource_ImplBase
- Throws:
org.apache.uima.resource.ResourceInitializationException
-
getResource
- Specified by:
getResource
in interfaceExternalResourceLocator
- Returns:
- the resource
-