Tabnine Logo
PackageSorter.sort
Code IndexAdd Tabnine to your IDE (free)

How to use
sort
method
in
org.jfree.base.modules.PackageSorter

Best Java code snippets using org.jfree.base.modules.PackageSorter.sort (Showing top 3 results out of 315)

origin: jfree/jcommon

/**
 * Initializes all previously uninitialized modules. Once a module is initialized,
 * it is not re-initialized a second time.
 */
public synchronized void initializeModules() {
  // sort by subsystems and dependency
  PackageSorter.sort(this.modules);
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState mod = (PackageState) this.modules.get(i);
    if (mod.configure(this.booter)) {
      Log.debug(new Log.SimpleMessage("Conf: ",
        new PadMessage(mod.getModule().getModuleClass(), 70),
        " [", mod.getModule().getSubSystem(), "]"));
    }
  }
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState mod = (PackageState) this.modules.get(i);
    if (mod.initialize(this.booter)) {
      Log.debug(new Log.SimpleMessage("Init: ",
        new PadMessage(mod.getModule().getModuleClass(), 70),
        " [", mod.getModule().getSubSystem(), "]"));
    }
  }
}
origin: org.jfree/jcommon

/**
 * Initializes all previously uninitialized modules. Once a module is initialized,
 * it is not re-initialized a second time.
 */
public synchronized void initializeModules() {
  // sort by subsystems and dependency
  PackageSorter.sort(this.modules);
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState mod = (PackageState) this.modules.get(i);
    if (mod.configure(this.booter)) {
      Log.debug(new Log.SimpleMessage("Conf: ",
        new PadMessage(mod.getModule().getModuleClass(), 70),
        " [", mod.getModule().getSubSystem(), "]"));
    }
  }
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState mod = (PackageState) this.modules.get(i);
    if (mod.initialize(this.booter)) {
      Log.debug(new Log.SimpleMessage("Init: ",
        new PadMessage(mod.getModule().getModuleClass(), 70),
        " [", mod.getModule().getSubSystem(), "]"));
    }
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Initializes all previously uninitialized modules. Once a module is initialized,
 * it is not re-initialized a second time.
 */
public synchronized void initializeModules() {
  // sort by subsystems and dependency
  PackageSorter.sort(this.modules);
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState mod = (PackageState) this.modules.get(i);
    if (mod.configure(this.booter)) {
      Log.debug(new Log.SimpleMessage("Conf: ",
        new PadMessage(mod.getModule().getModuleClass(), 70),
        " [", mod.getModule().getSubSystem(), "]"));
    }
  }
  for (int i = 0; i < this.modules.size(); i++) {
    final PackageState mod = (PackageState) this.modules.get(i);
    if (mod.initialize(this.booter)) {
      Log.debug(new Log.SimpleMessage("Init: ",
        new PadMessage(mod.getModule().getModuleClass(), 70),
        " [", mod.getModule().getSubSystem(), "]"));
    }
  }
}
org.jfree.base.modulesPackageSortersort

Javadoc

Sorts the given list of package states. The packages are sorted by their dependencies in a way so that all dependent packages are placed on lower positions than the packages which declared the dependency.

Popular methods of PackageSorter

  • collectSubsystemModules
    Collects all directly dependent subsystems.
  • isBaseModule
    Checks, whether a module is a base module of an given module.
  • searchModulePosition
    Computes the new module position. This position is computed according to the dependent modules and s

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Path (java.nio.file)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ImageIO (javax.imageio)
  • JFileChooser (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now