public class ExtensionLoader extends Object
ExtensionLoader is responsible to load extensions to the OpenNLP library.
Note: Do not use this class, internal use only!
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
instantiateExtension(Class<T> clazz,
String extensionClassName)
Instantiates an user provided extension to OpenNLP.
|
public static <T> T instantiateExtension(Class<T> clazz, String extensionClassName)
The extension is either loaded from the class path or if running inside an OSGi environment via an OSGi service.
clazz - extensionClassName - Copyright © 2019 The Apache Software Foundation. All rights reserved.