Codota Logo
PackageManager.loadModule
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.jfree.base.modules.PackageManager.loadModule (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: jfree/jcommon

/**
 * Adds a module to the package manager.
 * Once all modules are added, you have to call initializeModules()
 * to configure and initialize the new modules.
 *
 * @param modClass the module class
 */
public synchronized void addModule(final String modClass) {
  final ArrayList loadModules = new ArrayList();
  final ModuleInfo modInfo = new DefaultModuleInfo
    (modClass, null, null, null);
  if (loadModule(modInfo, new ArrayList(), loadModules, false)) {
    for (int i = 0; i < loadModules.size(); i++) {
      final Module mod = (Module) loadModules.get(i);
      this.modules.add(new PackageState(mod));
    }
  }
}
origin: org.jfree/jcommon

/**
 * Adds a module to the package manager.
 * Once all modules are added, you have to call initializeModules()
 * to configure and initialize the new modules.
 *
 * @param modClass the module class
 */
public synchronized void addModule(final String modClass) {
  final ArrayList loadModules = new ArrayList();
  final ModuleInfo modInfo = new DefaultModuleInfo
    (modClass, null, null, null);
  if (loadModule(modInfo, new ArrayList(), loadModules, false)) {
    for (int i = 0; i < loadModules.size(); i++) {
      final Module mod = (Module) loadModules.get(i);
      this.modules.add(new PackageState(mod));
    }
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Adds a module to the package manager.
 * Once all modules are added, you have to call initializeModules()
 * to configure and initialize the new modules.
 *
 * @param modClass the module class
 */
public synchronized void addModule(final String modClass) {
  final ArrayList loadModules = new ArrayList();
  final ModuleInfo modInfo = new DefaultModuleInfo
    (modClass, null, null, null);
  if (loadModule(modInfo, new ArrayList(), loadModules, false)) {
    for (int i = 0; i < loadModules.size(); i++) {
      final Module mod = (Module) loadModules.get(i);
      this.modules.add(new PackageState(mod));
    }
  }
}
origin: jfree/jcommon

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);
  if (loadModule(optional[i], incompleteModules, modules, true) == false) {
    Log.debug(new Log.SimpleMessage("Optional module: ",
      optional[i].getModuleClass(), " was not loaded."));
origin: org.jfree/com.springsource.org.jfree

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);
  if (loadModule(optional[i], incompleteModules, modules, true) == false) {
    Log.debug(new Log.SimpleMessage("Optional module: ",
      optional[i].getModuleClass(), " was not loaded."));
origin: org.jfree/jcommon

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);
  if (loadModule(optional[i], incompleteModules, modules, true) == false) {
    Log.debug(new Log.SimpleMessage("Optional module: ",
      optional[i].getModuleClass(), " was not loaded."));
org.jfree.base.modulesPackageManagerloadModule

Javadoc

Tries to load a given module and all dependent modules. If the dependency check fails for that module (or for one of the dependent modules), the loaded modules are discarded and no action is taken.

Popular methods of PackageManager

  • <init>
    Creates a new package manager.
  • acceptVersion
    Checks, whether the given module meets the requirements defined in the module information.
  • addModule
    Adds a module to the package manager. Once all modules are added, you have to call initializeModules
  • 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
  • load

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
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