public interface Initializable
This interface provides a way of initializing a class with a UimaContext
. The standard
use case of this interface involves situations in which a member variable is declared with an
interface type and the actual class that is used is decided at runtime. When the member variable
is instantiated, it is useful to provide it a UimaContext
so that it can initialize
itself based on configuration parameters.
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.apache.uima.UimaContext context)
This method will be called automatically if the implementing class is instantiated with
InitializableFactory.
|
void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
context
- the UIMA context containing the parameter settingsorg.apache.uima.resource.ResourceInitializationException
- if there was a problem during initializationCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.