Interface Initializable
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(UimaContext context) This method will be called automatically if the implementing class is instantiated with InitializableFactory.
-
Method Details
-
initialize
This method will be called automatically if the implementing class is instantiated with InitializableFactory.- Parameters:
context
- the UIMA context containing the parameter settings- Throws:
ResourceInitializationException
- if there was a problem during initialization
-