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

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

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

origin: jfree/jcommon

 (collectSubsystemModules(sortMod.getState().getModule(),
   moduleMap));
final int position = searchModulePosition(mod, moduleMap);
if (position != mod.getPosition())
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: jfree/jcommon

if (isBaseModule(subSysMod, module) == false)
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/jcommon

if (isBaseModule(subSysMod, module) == false)
origin: org.jfree/com.springsource.org.jfree

 (collectSubsystemModules(sortMod.getState().getModule(),
   moduleMap));
final int position = searchModulePosition(mod, moduleMap);
if (position != mod.getPosition())
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(), "]"));
    }
  }
}
origin: org.jfree/com.springsource.org.jfree

if (isBaseModule(subSysMod, module) == false)
origin: org.jfree/jcommon

 (collectSubsystemModules(sortMod.getState().getModule(),
   moduleMap));
final int position = searchModulePosition(mod, moduleMap);
if (position != mod.getPosition())
org.jfree.base.modulesPackageSorter

Javadoc

Compares two modules for order. A module is considered less than an other module if the module is a required module of the compared module. Modules are considered equal if they have no relation.

When sorting, we match this modules position against all dependent modules until all positions are stable. Circular references are evil and are filtered during the module loading process in the package manager.

Most used methods

  • 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
  • sort
    Sorts the given list of package states. The packages are sorted by their dependencies in a way so th

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • startActivity (Activity)
  • findViewById (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Best plugins for Eclipse
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