Tabnine Logo
PackageManager.loadModule
Code IndexAdd Tabnine 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)

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 post requests using okhttp
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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