Package org.languagetool.broker
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
-
Method Details
-
forName
Returns theClassobject associated with the class or interface with the given string name.- Parameters:
qualifiedName- the fully qualified name of the desired class.- Returns:
- the
Classobject for the class with the specified name. - Throws:
ClassNotFoundException- if the class cannot be located
-