Interface ClassBroker

All Known Implementing Classes:
DefaultClassBroker

public interface ClassBroker
Is responsible for loading the necessary classes for LanguageTool library. It is necessary to provide the ability to load classes from custom classloaders.

Make sure that you never obtain any LanguageTool class by calling Class.forName(String) directly. If you would like to load class do always use JLanguageTool.getClassBroker() which provides proper method for loading classes.

Since:
5.0
  • Method Summary

    Modifier and Type
    Method
    Description
    forName(String qualifiedName)
    Returns the Class object associated with the class or interface with the given string name.
  • Method Details

    • forName

      Class<?> forName(String qualifiedName) throws ClassNotFoundException
      Returns the Class object associated with the class or interface with the given string name.
      Parameters:
      qualifiedName - the fully qualified name of the desired class.
      Returns:
      the Class object for the class with the specified name.
      Throws:
      ClassNotFoundException - if the class cannot be located