Package org.apache.uima.fit.component
Interface ExternalResourceAware
- All Known Implementing Classes:
JndiResourceLocator
,Resource_ImplBase
,ResourceList
public interface ExternalResourceAware
Allows an external resource to use the
ExternalResource
annotation on member variables to
gain access to other external resources.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called after the external resources have been initialized.Get the name of the resource.
-
Method Details
-
getResourceName
String getResourceName()Get the name of the resource. This is set by the different variations ofExternalResourceFactory.bindResourceOnce(org.apache.uima.resource.metadata.ResourceManagerConfiguration, java.lang.String, org.apache.uima.resource.ExternalResourceDescription)
which internally callExternalResourceFactory.bindNestedResources(...)
to set the parameterPARAM_RESOURCE_NAME
.
It is mandatory that any resource implementing this interface declares the configuration parameterPARAM_RESOURCE_NAME
.- Returns:
- the resource name.
-
afterResourcesInitialized
void afterResourcesInitialized() throws org.apache.uima.resource.ResourceInitializationExceptionCalled after the external resources have been initialized.- Throws:
org.apache.uima.resource.ResourceInitializationException
- if an problem occurs in the late initialization.
-