Codota Logo
PackageManager.addModule
Code IndexAdd Codota 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)

  • Common ways to obtain PackageManager
private void myMethod () {
PackageManager p =
  • Codota IconAbstractBoot abstractBoot;PackageManager.createInstance(abstractBoot)
  • Codota IconAbstractBoot booter;new PackageManager(booter)
  • Codota IconHashMap hashMap;Object key;(PackageManager) hashMap.get(key)
  • Smart code suggestions by Codota
}
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

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • orElseThrow (Optional)
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • BoxLayout (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now