|
Blocks :
|
|
|
Duplicate :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
It would be good to create an SPI for simple command line tools, for simple use of JDK tools and others.
Proposed package java.util.spi
Following the existing naming convention the proposed name is ToolProvider
API should include the following methods:
String getName();
int run(PrintWriter pw, String... args)
Possible additional methods
default int run(PrintStream ps, String... args) // creates a PrintWriter and calls other method
static ToolProvider lookup(String name) // use ServiceLoader to locate first instance of named service
|