java.util.ServiceLoader .
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DocumentationTool | Returns: the documentation tool provided with this platform ornull if no documentation tool is providedReturns the Java programming language documentation tool provided with this platform. |
| public static JavaCompiler | Returns: the compiler provided with this platform ornull if no compiler is providedReturns the Java programming language compiler provided with this platform. |
| private static < the interface of the tool T> T | Returns: the specified implementation of the toolthe interface of the tool clazz, String the name of the module containing the desired implementation moduleName, String the class name of the desired implementation className)Get an instance of a system tool using the service loader. |
| public static ClassLoader | Returns: a class loader, ornull
Deprecated
since 9. This method is subject to removal in a future version of
Java SE.
Returns a class loader that may be used to load system tools,
or |
| systemDocumentationToolModule | back to summary |
|---|---|
| private static final String systemDocumentationToolModule | |
| systemDocumentationToolName | back to summary |
|---|---|
| private static final String systemDocumentationToolName | |
| systemJavaCompilerModule | back to summary |
|---|---|
| private static final String systemJavaCompilerModule | |
| systemJavaCompilerName | back to summary |
|---|---|
| private static final String systemJavaCompilerName | |
| ToolProvider | back to summary |
|---|---|
| private ToolProvider() | |
| getSystemDocumentationTool | back to summary |
|---|---|
| public static DocumentationTool getSystemDocumentationTool() Returns the Java programming language documentation tool provided with this platform. The file manager returned by calling
Implementation Note This implementation returns the tool provided
by the
| |
| getSystemJavaCompiler | back to summary |
|---|---|
| public static JavaCompiler getSystemJavaCompiler() Returns the Java programming language compiler provided with this platform. The file manager returned by calling
Implementation Note This implementation returns the compiler provided
by the
| |
| getSystemTool | back to summary |
|---|---|
| private static <T> T getSystemTool(Class<T> clazz, String moduleName, String className) Get an instance of a system tool using the service loader. Implementation Note By default, this returns the implementation in the specified module. For limited backward compatibility, if this code is run on an older version of the Java platform that does not support modules, this method will try and create an instance of the named class. Note that implies the class must be available on the system class path. | |
| getSystemToolClassLoader | back to summary |
|---|---|
| public static ClassLoader getSystemToolClassLoader()
Deprecated since 9. This method is subject to removal in a future version of Java SE. Use the system tool provider or service loader mechanisms to locate system tools as well as user-installed tools. Returns a class loader that may be used to load system tools,
or Implementation Specification This implementation always returns
| |