Filtered version of this ClassLoader
, exposing only dependencies
and their
their transitive dependencies, and filtering out the other dependencies from
resolution
- for ClassLoader
isolation.
Filtered version of this ClassLoader
, exposing only dependencies
and their
their transitive dependencies, and filtering out the other dependencies from
resolution
- for ClassLoader
isolation.
An application launched by coursier launch -C
has ResolutionClassLoader
set as its
context ClassLoader
(can be obtain with Thread.currentThread().getContextClassLoader
).
If it aims at doing ClassLoader
isolation, exposing only a dependency dep
to the isolated
things, filter(dep)
provides a ClassLoader
that loaded dep
and all its transitive
dependencies through the same loader as the contextual one, but that "exposes" only
dep
and its transitive dependencies, nothing more.
(Since version ) see corresponding Javadoc for more information.