javax.tools
Class ToolProvider
java.lang.Object
javax.tools.ToolProvider
public class ToolProvider
- extends java.lang.Object
Provides methods for locating tool providers, for example,
providers of compilers. This class complements the
functionality of java.util.ServiceLoader.
- Since:
- 1.6
|
Nested Class Summary |
(package private) static class |
ToolProvider.Lazy
This class will not be initialized until one of the above
methods are called. |
|
Method Summary |
static JavaCompiler |
getSystemJavaCompiler()
Gets the Java™ programming language compiler provided
with this platform. |
static java.lang.ClassLoader |
getSystemToolClassLoader()
Returns the class loader for tools provided with this platform. |
(package private) static
|
trace(java.util.logging.Level level,
java.lang.Object reason)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
propertyName
private static final java.lang.String propertyName
- See Also:
- Constant Field Values
loggerName
private static final java.lang.String loggerName
- See Also:
- Constant Field Values
ToolProvider
private ToolProvider()
trace
static <T> T trace(java.util.logging.Level level,
java.lang.Object reason)
getSystemJavaCompiler
public static JavaCompiler getSystemJavaCompiler()
- Gets the Java™ programming language compiler provided
with this platform.
- Returns:
- the compiler provided with this platform or
null if no compiler is provided
getSystemToolClassLoader
public static java.lang.ClassLoader getSystemToolClassLoader()
- Returns the class loader for tools provided with this platform.
This does not include user-installed tools. Use the
service provider mechanism
for locating user installed tools.
- Returns:
- the class loader for tools provided with this platform
or
null if no tools are provided