org.netbeans.core.startup/1 1.40

org.netbeans.core.startup
Class ConsistencyVerifier

java.lang.Object
  extended by org.netbeans.core.startup.ConsistencyVerifier

public class ConsistencyVerifier
extends Object

Utility class permitting you to verify that a set of modules could be enabled together. Currently used from org.netbeans.core.validation.ValidateUpdateCenterTest.


Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findInconsistencies

public static SortedMap<String,SortedSet<String>> findInconsistencies(Set<Manifest> modules)
                                                               throws IllegalArgumentException
Find all expected installation problems for a set of modules. Standard OS and module format tokens are provided, but all other dependencies must be accessible from the set of modules supplied.

Parameters:
modules - a set of module manifests to test together
Returns:
a map from module code name bases, to sets of problems, expressed in an unspecified but readable format
Throws:
IllegalArgumentException - if the set of modules is illegal (e.g. contains duplicates)

findInconsistencies

public static SortedMap<String,SortedSet<String>> findInconsistencies(Set<Manifest> modules,
                                                                      Set<String> permittedDisabledAutoloads)
                                                               throws IllegalArgumentException
Find all expected installation problems for a set of modules. Standard OS and module format tokens are provided, but all other dependencies must be accessible from the set of modules supplied.

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.

Parameters:
modules - a set of module manifests to test together
permittedDisabledAutoloads - if null, do not check autoload enablement; otherwise (not null but possibly empty) permit the listed modules (as CNBs) to be disabled
Returns:
a map from module code name bases, to sets of problems, expressed in an unspecified but readable format
Throws:
IllegalArgumentException - if the set of modules is illegal (e.g. contains duplicates)

org.netbeans.core.startup/1 1.40

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.