-
CSR
-
Resolution: Approved
-
P3
-
None
-
binary
-
minimal
-
-
Java API
Summary
Provide access to the Reporter and Locale for the StandardDoclet.
Problem
StandardDoclet supports arbitrary plugin "taglets", but does not provide a way for taglets to access the reporter and locale provided to the doclet when it was initialized. The workaround today is to use reflection to access the doclet's internal state!
Solution
Add methods to StandardDoclet
to access the locale and reporter.
Specification
The following methods will be added to the jdk.javadoc.doclet.StandardDoclet
class:
/**
* {@return the locale for this doclet}
*
* @see #init(Locale, Reporter)
*
* @since 17
*/
public Locale getLocale() {
return htmlDoclet.getConfiguration().getLocale();
}
/**
* {@return the reporter for this doclet}
*
* @see #init(Locale, Reporter)
*
* @since 17
*/
public Reporter getReporter() {
return htmlDoclet.getConfiguration().getReporter();
}
- csr of
-
JDK-8267176 StandardDoclet should provide access to Reporter and Locale
-
- Resolved
-