See: Description
Package | Description |
---|---|
org.netbeans.api.java.classpath |
Representation of Java classpaths, and the ability to find the classpath needed
for a particular purpose.
|
org.netbeans.api.java.queries | |
org.netbeans.spi.java.classpath |
SPI permitting new classpaths to be constructed and registered.
|
org.netbeans.spi.java.classpath.support |
Convenience classes to make it easier to create classpaths.
|
org.netbeans.spi.java.queries | |
org.netbeans.spi.java.queries.support |
ClassPathAPIs The ClassPath APIs provides java classpath like ordered collection of (source) roots with ability to listen on changes and helper methods like finding the file under the roots, returning a path from root to given file. It also provides a registry where projects register their classpaths to make them visible to languages infrastructure.
New Result2
and new BinaryForSourceQueryImplementation2
that allows one to specify that binaries should be used instead
of compiling the sources (if the binaries are already compiled and
newer).
ClassPath
switching among several ClassPath
instances
Added a factory method into ClassPathSupport
creating a ClassPath
switching among several ClassPath
instances.
Added a policy for handling in archive paths while converting the ClassPath
to String
.
The ClassPath.toString
takes a PathEmbeddingMode
parameter determining how the in archive
path is handled. It can be included into stringified root, omitted from it, or handled as an invalid classpath root.
GlobalPathRegistry
Added a SPI interface to allow different implementations of the GlobalPathRegistry
.
The GlobalPathRegistry
uses the first instance od the GlobalPathRegistryImplementation
registered in the global Lookup
Added flags to ClassPath
The API is widely used by all sorts of IDE modules which need to work with sources. The SPI is intended mainly for (java) platforms and library providers, and project type providers, to declare all of this information.
|
The sources for the module are in the Apache Git repositories or in the GitHub repositories.
Read more about the implementation in the answers to architecture questions.