Representation of Java classpaths, and the ability to find the classpath needed for a particular purpose.
SPI permitting new classpaths to be constructed and registered.
Convenience classes to make it easier to create classpaths.
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.
ClassPathswitching among several
Added a factory method into
ClassPathSupport creating a
switching among several
Added a policy for handling in archive paths while converting 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.
Added a SPI interface to allow different implementations of the
GlobalPathRegistry uses the first instance od the
registered in the global
Added flags to
Added a constant representing an empty ClassPath like java.util.Collections.EMPTY_LIST. This ClassPath has no entries and never fires any events.
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 NetBeans Mercurial repositories.
Read more about the implementation in the answers to architecture questions.