|
org.netbeans.api.java/1 1.37 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
See:
Description
| Java Support APIs | |
|---|---|
| org.netbeans.api.java.classpath | |
| org.netbeans.api.java.queries | Java-specific queries. |
| org.netbeans.spi.java.queries | Implementations of Java-related queries. |
JavaSupportAPIs The Java Support APIs provides basic facilities for getting or supplying information about Java-language source files. It is based on the query pattern so implementations can be supplied from other modules or projects.
Added an API to allow clients to attach source roots and javadoc roots to binary roots. The API delegates to SPI implementations which provide specific behavior depending on type of binary root (platform, library, maven artifact). There is also fallback implementation handling unknown binary roots by storing the bindings into IDE's userdir.
The SourceLevelQuery did not allow listening on the source level changes. Such a notifications are required by the annotation processor support and indexing. This API change adds a SourceLevelQuery.getSourceLevel2 which returns a Result object which allows listening like other queries.
Modifying AnnotationProcessingQuery.Result.annotationProcessingEnabled() to return a set of triggers on which the annotation processors should be run.
Adding AnnotationProcessingQuery.Result.processorOptions() to return options passed to annotation processors (-Akey=value).
Adding AnnotationProcessingQuery return annotation processing options for a given file/folder.
The API is widely used by all sorts of IDE modules which need to work with Java sources. They can find Javadoc, unit tests, source level, etc. The SPI is intended mainly for Java platform and library providers, and project type providers, to declare all of this information.
|
The sources for the module are in the NetBeans Mercurial repositories.
Read more about the implementation in the answers to architecture questions.
|
org.netbeans.api.java/1 1.37 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||