Tabnine Logo
PackageManager.addModule
Code IndexAdd Tabnine to your IDE (free)

How to use
addModule
method
in
org.jfree.base.modules.PackageManager

Best Java code snippets using org.jfree.base.modules.PackageManager.addModule (Showing top 6 results out of 315)

origin: org.jfree/jcommon

/**
 * Loads all modules mentioned in the report configuration starting with
 * the given prefix. This method is used during the boot process of
 * JFreeReport. You should never need to call this method directly.
 *
 * @param modulePrefix the module prefix.
 */
public void load(final String modulePrefix) {
  if (this.initSections.contains(modulePrefix)) {
    return;
  }
  this.initSections.add(modulePrefix);
  final Configuration config = this.booter.getGlobalConfig();
  final Iterator it = config.findPropertyKeys(modulePrefix);
  int count = 0;
  while (it.hasNext()) {
    final String key = (String) it.next();
    if (key.endsWith(".Module")) {
      final String moduleClass = config.getConfigProperty(key);
      if (moduleClass != null && moduleClass.length() > 0) {
        addModule(moduleClass);
        count++;
      }
    }
  }
  Log.debug("Loaded a total of " + count + " modules under prefix: " + modulePrefix);
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Loads all modules mentioned in the report configuration starting with
 * the given prefix. This method is used during the boot process of
 * JFreeReport. You should never need to call this method directly.
 *
 * @param modulePrefix the module prefix.
 */
public void load(final String modulePrefix) {
  if (this.initSections.contains(modulePrefix)) {
    return;
  }
  this.initSections.add(modulePrefix);
  final Configuration config = this.booter.getGlobalConfig();
  final Iterator it = config.findPropertyKeys(modulePrefix);
  int count = 0;
  while (it.hasNext()) {
    final String key = (String) it.next();
    if (key.endsWith(".Module")) {
      final String moduleClass = config.getConfigProperty(key);
      if (moduleClass != null && moduleClass.length() > 0) {
        addModule(moduleClass);
        count++;
      }
    }
  }
  Log.debug("Loaded a total of " + count + " modules under prefix: " + modulePrefix);
}
origin: jfree/jcommon

/**
 * Loads all modules mentioned in the report configuration starting with
 * the given prefix. This method is used during the boot process of
 * JFreeReport. You should never need to call this method directly.
 *
 * @param modulePrefix the module prefix.
 */
public void load(final String modulePrefix) {
  if (this.initSections.contains(modulePrefix)) {
    return;
  }
  this.initSections.add(modulePrefix);
  final Configuration config = this.booter.getGlobalConfig();
  final Iterator it = config.findPropertyKeys(modulePrefix);
  int count = 0;
  while (it.hasNext()) {
    final String key = (String) it.next();
    if (key.endsWith(".Module")) {
      final String moduleClass = config.getConfigProperty(key);
      if (moduleClass != null && moduleClass.length() > 0) {
        addModule(moduleClass);
        count++;
      }
    }
  }
  Log.debug("Loaded a total of " + count + " modules under prefix: " + modulePrefix);
}
origin: jfree/jcommon

/**
 * Performs the boot process.
 */
protected void performBoot() {
  // configure the classloader from the properties-file.
  ObjectUtilities.setClassLoaderSource
      (getConfiguration().getConfigProperty("org.jfree.ClassLoader"));
  getPackageManager().addModule(DefaultLogModule.class.getName());
  getPackageManager().load("org.jfree.jcommon.modules.");
  getPackageManager().initializeModules();
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Performs the boot process.
 */
protected void performBoot() {
  // configure the classloader from the properties-file.
  ObjectUtilities.setClassLoaderSource
      (getConfiguration().getConfigProperty("org.jfree.ClassLoader"));
  getPackageManager().addModule(DefaultLogModule.class.getName());
  getPackageManager().load("org.jfree.jcommon.modules.");
  getPackageManager().initializeModules();
}
origin: org.jfree/jcommon

/**
 * Performs the boot process.
 */
protected void performBoot() {
  // configure the classloader from the properties-file.
  ObjectUtilities.setClassLoaderSource
      (getConfiguration().getConfigProperty("org.jfree.ClassLoader"));
  getPackageManager().addModule(DefaultLogModule.class.getName());
  getPackageManager().load("org.jfree.jcommon.modules.");
  getPackageManager().initializeModules();
}
org.jfree.base.modulesPackageManageraddModule

Javadoc

Adds a module to the package manager. Once all modules are added, you have to call initializeModules() to configure and initialize the new modules.

Popular methods of PackageManager

  • <init>
    Creates a new package manager.
  • acceptVersion
    Checks, whether the given module meets the requirements defined in the module information.
  • containsModule
    Checks, whether the given module is already loaded in either the given tempModules list or the globa
  • createInstance
    Creates a package manager instance.
  • dropFailedModule
    A utility method that collects all failed modules. Such an module caused an error while being loaded
  • getAllModules
    Returns an array of the currently active modules. The module definition returned contain all known m
  • getPackageConfiguration
    Returns the default package configuration. Private report configuration instances may be inserted he
  • initializeModules
    Initializes all previously uninitialized modules. Once a module is initialized, it is not re-initial
  • isModuleAvailable
    Checks, whether a certain module is available.
  • load
    Loads all modules mentioned in the report configuration starting with the given prefix. This method
  • loadModule
    Tries to load a given module and all dependent modules. If the dependency check fails for that modul
  • loadModule

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JPanel (javax.swing)
  • Top plugins for Android Studio
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