Package org.apache.uima.fit.component
Interface ExternalResourceAware
- All Known Implementing Classes:
ExternalResourceExample3.ChainableResource
,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
Called after the external resources have been initialized.- Throws:
ResourceInitializationException
- if an problem occurs in the late initialization.
-