public class ConsistencyVerifier extends Object
org.netbeans.core.validation.ValidateUpdateCenterTest
.Modifier and Type | Method and Description |
---|---|
static SortedMap<String,SortedSet<String>> |
findInconsistencies(Set<Manifest> modules)
Find all expected installation problems for a set of modules.
|
static SortedMap<String,SortedSet<String>> |
findInconsistencies(Set<Manifest> modules,
Set<String> permittedDisabledAutoloads)
Find all expected installation problems for a set of modules.
|
public static SortedMap<String,SortedSet<String>> findInconsistencies(Set<Manifest> modules) throws IllegalArgumentException
modules
- a set of module manifests to test togetherIllegalArgumentException
- if the set of modules is illegal (e.g. contains duplicates)public static SortedMap<String,SortedSet<String>> findInconsistencies(Set<Manifest> modules, Set<String> permittedDisabledAutoloads) throws IllegalArgumentException
The manifests may contain the pseudoattributes autoload
and
eager
which if set to true
will mark the
corresponding modules autoload or eager (resp.). It is considered an
error if some nondeprecated autoload modules would not be enabled unless
explicitly whitelisted.
modules
- a set of module manifests to test togetherpermittedDisabledAutoloads
- if null, do not check autoload
enablement; otherwise (not null but possibly empty) permit the listed
modules (as CNBs) to be disabledIllegalArgumentException
- if the set of modules is illegal (e.g.
contains duplicates)