opennlp.tools.util.ext
Class ExtensionLoader

java.lang.Object
  extended by opennlp.tools.util.ext.ExtensionLoader

public class ExtensionLoader
extends Object

The ExtensionLoader is responsible to load extensions to the OpenNLP library.

Note: Do not use this class, internal use only!


Method Summary
static
<T> T
instantiateExtension(Class<T> clazz, String extensionClassName)
          Instantiates an user provided extension to OpenNLP.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instantiateExtension

public static <T> T instantiateExtension(Class<T> clazz,
                                         String extensionClassName)
Instantiates an user provided extension to OpenNLP.

The extension is either loaded from the class path or if running inside an OSGi environment via an OSGi service.

Parameters:
clazz -
extensionClassName -
Returns:


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.