OSGiExtensionLoader (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.util.ext

## Class OSGiExtensionLoader

- java.lang.Object
- - opennlp.tools.util.ext.OSGiExtensionLoader

- All Implemented Interfaces:
    org.osgi.framework.BundleActivator

      public class OSGiExtensionLoader
      extends Object
      implements org.osgi.framework.BundleActivator

  OSGi bundle activator which can use an OSGi service as an OpenNLP extension.

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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OSGiExtensionLoader()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `start(org.osgi.framework.BundleContext context)`
    `void` | `stop(org.osgi.framework.BundleContext context)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### OSGiExtensionLoader

          public OSGiExtensionLoader()

  - ### Method Detail

    - #### start

          public void start(org.osgi.framework.BundleContext context)
                     throws Exception

      Specified by:
        `start` in interface `org.osgi.framework.BundleActivator`
      Throws:
        `Exception`

    - #### stop

          public void stop(org.osgi.framework.BundleContext context)
                    throws Exception

      Specified by:
        `stop` in interface `org.osgi.framework.BundleActivator`
      Throws:
        `Exception`

Copyright © 2026 The Apache Software Foundation. All rights reserved.