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

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

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

origin: org.jfree/jcommon

this.module.configure(subSystem);
this.state = STATE_CONFIGURED;
return true;
    this.module.getName(), ":", noClassDef.getMessage()));
this.state = STATE_ERROR;
 Log.warn("Unable to configure the module " + this.module.getName(), e);
 Log.warn("Unable to configure the module " + this.module.getName());
origin: jfree/jcommon

for (int i = 0; i < activeModules.size(); i++) {
  final Module mod = (Module) activeModules.get(i);
  p.print(new PadMessage(mod.getModuleClass(), 70));
  p.print(" [");
  p.print(mod.getSubSystem());
  p.println("]");
  p.print("  Version: ");
  p.print(mod.getMajorVersion());
  p.print("-");
  p.print(mod.getMinorVersion());
  p.print("-");
  p.print(mod.getPatchLevel());
  p.print(" Producer: ");
  p.println(mod.getProducer());
  p.print("  Description: ");
  p.println(mod.getDescription());
origin: org.jfree/com.springsource.org.jfree

/**
 * Checks, whether a module is a base module of an given module.
 *
 * @param mod the module which to check
 * @param mi the module info of the suspected base module.
 * @return true, if the given module info describes a base module of the
 * given module, false otherwise.
 */
private static boolean isBaseModule(final Module mod, final ModuleInfo mi)
{
 ModuleInfo[] info = mod.getRequiredModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 info = mod.getOptionalModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 return false;
}
origin: jfree/jcommon

/**
 * Returns a basic string representation of this SortModule. This
 * should be used for debugging purposes only.
 * @see java.lang.Object#toString()
 *
 * @return a string representation of this module.
 */
public String toString ()
{
 final StringBuffer buffer = new StringBuffer();
 buffer.append("SortModule: ");
 buffer.append(this.position);
 buffer.append(" ");
 buffer.append(this.state.getModule().getName());
 buffer.append(" ");
 buffer.append(this.state.getModule().getModuleClass());
 return buffer.toString();
}
origin: org.jfree/com.springsource.org.jfree

ModuleInfo[] info = childMod.getRequiredModules();
for (int i = 0; i < info.length; i++)
 collector.add (dependentModule.getState().getModule().getSubSystem());
info = childMod.getOptionalModules();
for (int i = 0; i < info.length; i++)
  continue;
 collector.add (dependentModule.getSubSystem());
origin: jfree/jcommon

  return true;
if (module.getMajorVersion() == null) {
  Log.warn("Module " + module.getName() + " does not define a major version.");
    module.getMajorVersion());
  if (compare > 0) {
    return false;
  return true;
if (module.getMinorVersion() == null) {
  Log.warn("Module " + module.getName() + " does not define a minor version.");
    module.getMinorVersion());
  if (compare > 0) {
    return false;
  return true;
if (module.getPatchLevel() == null) {
  Log.debug("Module " + module.getName() + " does not define a patch level.");
    module.getPatchLevel()) > 0) {
    Log.debug("Did not accept patchlevel: " 
        + moduleRequirement.getPatchLevel() + " - " 
        + module.getPatchLevel());
    return false;
origin: jfree/jcommon

  Log.warn("Module " + module.getName() + ": required version: " 
      + moduleInfo + ", but found Version: \n" + module);
  final PackageState state = new PackageState(module, PackageState.STATE_ERROR);
if (moduleContained == RETURN_MODULE_ERROR) {
  Log.debug("Indicated failure for module: " + module.getModuleClass());
  final PackageState state = new PackageState(module, PackageState.STATE_ERROR);
  dropFailedModule(state);
  final ModuleInfo[] required = module.getRequiredModules();
  for (int i = 0; i < required.length; i++) {
    if (loadModule(required[i], incompleteModules, modules, true) == false) {
      Log.debug("Indicated failure for module: " + module.getModuleClass());
      final PackageState state = new PackageState(module, PackageState.STATE_ERROR);
      dropFailedModule(state);
  final ModuleInfo[] optional = module.getOptionalModules();
  for (int i = 0; i < optional.length; i++) {
    if (loadModule(optional[i], incompleteModules, modules, true) == false) {
origin: jfree/jcommon

/**
 * Compares this object with the given other object for equality. 
 * @see java.lang.Object#equals(java.lang.Object)
 * 
 * @param o the other object to be compared
 * @return true, if the other object is also a PackageState containing
 * the same module, false otherwise. 
 */
public boolean equals(final Object o)
{
 if (this == o)
 {
  return true;
 }
 if (!(o instanceof PackageState))
 {
  return false;
 }
 final PackageState packageState = (PackageState) o;
 if (!this.module.getModuleClass().equals(packageState.module.getModuleClass()))
 {
  return false;
 }
 return true;
}
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

 this.module.initialize(subSystem);
 this.state = STATE_INITIALIZED;
 return true;
    this.module.getName(), ":", noClassDef.getMessage()));
this.state = STATE_ERROR;
 Log.warn("Unable to initialize the module " + this.module.getName(), me);
 Log.warn("Unable to initialize the module " + this.module.getName());
 Log.warn("Unable to initialize the module " + this.module.getName(), e);
 Log.warn("Unable to initialize the module " + this.module.getName());
origin: jfree/jcommon

ModuleInfo[] info = childMod.getRequiredModules();
for (int i = 0; i < info.length; i++)
 collector.add (dependentModule.getState().getModule().getSubSystem());
info = childMod.getOptionalModules();
for (int i = 0; i < info.length; i++)
  continue;
 collector.add (dependentModule.getSubSystem());
origin: org.jfree/com.springsource.org.jfree

  return true;
if (module.getMajorVersion() == null) {
  Log.warn("Module " + module.getName() + " does not define a major version.");
    module.getMajorVersion());
  if (compare > 0) {
    return false;
  return true;
if (module.getMinorVersion() == null) {
  Log.warn("Module " + module.getName() + " does not define a minor version.");
    module.getMinorVersion());
  if (compare > 0) {
    return false;
  return true;
if (module.getPatchLevel() == null) {
  Log.debug("Module " + module.getName() + " does not define a patch level.");
    module.getPatchLevel()) > 0) {
    Log.debug("Did not accept patchlevel: " 
        + moduleRequirement.getPatchLevel() + " - " 
        + module.getPatchLevel());
    return false;
origin: org.jfree/com.springsource.org.jfree

  Log.warn("Module " + module.getName() + ": required version: " 
      + moduleInfo + ", but found Version: \n" + module);
  final PackageState state = new PackageState(module, PackageState.STATE_ERROR);
if (moduleContained == RETURN_MODULE_ERROR) {
  Log.debug("Indicated failure for module: " + module.getModuleClass());
  final PackageState state = new PackageState(module, PackageState.STATE_ERROR);
  dropFailedModule(state);
  final ModuleInfo[] required = module.getRequiredModules();
  for (int i = 0; i < required.length; i++) {
    if (loadModule(required[i], incompleteModules, modules, true) == false) {
      Log.debug("Indicated failure for module: " + module.getModuleClass());
      final PackageState state = new PackageState(module, PackageState.STATE_ERROR);
      dropFailedModule(state);
  final ModuleInfo[] optional = module.getOptionalModules();
  for (int i = 0; i < optional.length; i++) {
    if (loadModule(optional[i], incompleteModules, modules, true) == false) {
origin: org.jfree/jcommon

/**
 * Compares this object with the given other object for equality. 
 * @see java.lang.Object#equals(java.lang.Object)
 * 
 * @param o the other object to be compared
 * @return true, if the other object is also a PackageState containing
 * the same module, false otherwise. 
 */
public boolean equals(final Object o)
{
 if (this == o)
 {
  return true;
 }
 if (!(o instanceof PackageState))
 {
  return false;
 }
 final PackageState packageState = (PackageState) o;
 if (!this.module.getModuleClass().equals(packageState.module.getModuleClass()))
 {
  return false;
 }
 return true;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns a basic string representation of this SortModule. This
 * should be used for debugging purposes only.
 * @see java.lang.Object#toString()
 *
 * @return a string representation of this module.
 */
public String toString ()
{
 final StringBuffer buffer = new StringBuffer();
 buffer.append("SortModule: ");
 buffer.append(this.position);
 buffer.append(" ");
 buffer.append(this.state.getModule().getName());
 buffer.append(" ");
 buffer.append(this.state.getModule().getModuleClass());
 return buffer.toString();
}
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

 this.module.initialize(subSystem);
 this.state = STATE_INITIALIZED;
 return true;
    this.module.getName(), ":", noClassDef.getMessage()));
this.state = STATE_ERROR;
 Log.warn("Unable to initialize the module " + this.module.getName(), me);
 Log.warn("Unable to initialize the module " + this.module.getName());
 Log.warn("Unable to initialize the module " + this.module.getName(), e);
 Log.warn("Unable to initialize the module " + this.module.getName());
origin: org.jfree/jcommon

for (int i = 0; i < activeModules.size(); i++) {
  final Module mod = (Module) activeModules.get(i);
  p.print(new PadMessage(mod.getModuleClass(), 70));
  p.print(" [");
  p.print(mod.getSubSystem());
  p.println("]");
  p.print("  Version: ");
  p.print(mod.getMajorVersion());
  p.print("-");
  p.print(mod.getMinorVersion());
  p.print("-");
  p.print(mod.getPatchLevel());
  p.print(" Producer: ");
  p.println(mod.getProducer());
  p.print("  Description: ");
  p.println(mod.getDescription());
origin: org.jfree/jcommon

ModuleInfo[] info = childMod.getRequiredModules();
for (int i = 0; i < info.length; i++)
 collector.add (dependentModule.getState().getModule().getSubSystem());
info = childMod.getOptionalModules();
for (int i = 0; i < info.length; i++)
  continue;
 collector.add (dependentModule.getSubSystem());
origin: org.jfree/jcommon

  return true;
if (module.getMajorVersion() == null) {
  Log.warn("Module " + module.getName() + " does not define a major version.");
    module.getMajorVersion());
  if (compare > 0) {
    return false;
  return true;
if (module.getMinorVersion() == null) {
  Log.warn("Module " + module.getName() + " does not define a minor version.");
    module.getMinorVersion());
  if (compare > 0) {
    return false;
  return true;
if (module.getPatchLevel() == null) {
  Log.debug("Module " + module.getName() + " does not define a patch level.");
    module.getPatchLevel()) > 0) {
    Log.debug("Did not accept patchlevel: " 
        + moduleRequirement.getPatchLevel() + " - " 
        + module.getPatchLevel());
    return false;
org.jfree.base.modulesModule

Javadoc

A module encapsulates optional functionality within a project. Modules can be used as an easy way to make projects more configurable.

The module system provides a controled way to check dependencies and to initialize the modules in a controlled way.

Most used methods

  • configure
    Configures the module. This should load the default settings of the module.
  • getDescription
    Returns a short description of the modules functionality.
  • getMajorVersion
  • getMinorVersion
  • getModuleClass
  • getName
    Returns the module name. This name should be a short descriptive handle of the module.
  • getOptionalModules
    Returns an array of optional modules. Missing or invalid modules are non fatal and will not harm the
  • getPatchLevel
  • getProducer
    Returns the name of the module producer.
  • getRequiredModules
    Returns an array of all required modules. If one of these modules is missing or cannot be initialize
  • getSubSystem
    Returns the modules subsystem. If this module is not part of an subsystem then return the modules na
  • initialize
    Initializes the module. Use this method to perform all initial setup operations. This method is call
  • getSubSystem,
  • initialize

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JTextField (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top Sublime Text plugins
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