My understanding is:
- The Java Doclet API is just an API (composed of interfaces) rooted at
com.sun.javadoc
- When Javadoc runs it looks for a Doclet API impl to bind to at runtime
- If no such impl exists then it uses some default (hence you can generate Javadocs without having to specify your own CSS files, etc.)
- Google's DocLava is one such Doclet API impl
If this is true, then how does one specify a different Doclet impl (such as DocLava) over the default? If I'm way off base, then how does the Javadoc tool, the Doclet API and DocLava all relate to one another?
See the javadoc tool documentation command line option section. You specify the document to use with the
-doclet
argument:Details about using the DocLava doclet are in the DocLava Getting Started guide: