org.netbeans.bootstrap/1 2.52

org.netbeans
Class ModuleFactory

java.lang.Object
  extended by org.netbeans.ModuleFactory

public class ModuleFactory
extends Object

Allows creation of custom modules. The factories are searched in the default lookup (org.openide.util.Lookup.getDefault()). If there is one it is used - if there are more of them arbitrary one is used (so please make sure that there is only one present in the installation). If there is none in the default lookup the system will use an instance of this class.


Constructor Summary
ModuleFactory()
           
 
Method Summary
 Module create(File jar, Object history, boolean reloadable, boolean autoload, boolean eager, ModuleManager mgr, Events ev)
          This method creates a "standard" module.
 Module createFixed(Manifest mani, Object history, ClassLoader loader, boolean autoload, boolean eager, ModuleManager mgr, Events ev)
          This method creates a "fixed" module.
 ClassLoader getClasspathDelegateClassLoader(ModuleManager mgr, ClassLoader del)
          Allows specifying different parent classloader of all modules classloaders.
 boolean removeBaseClassLoader()
          If this method returns true the parent the original classpath classloader will be removed from the parent classloaders of a module classloader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleFactory

public ModuleFactory()
Method Detail

create

public Module create(File jar,
                     Object history,
                     boolean reloadable,
                     boolean autoload,
                     boolean eager,
                     ModuleManager mgr,
                     Events ev)
              throws IOException
This method creates a "standard" module. Standard modules can be disabled, reloaded, autoloaded (loaded only when needed).

Throws:
IOException
See Also:
StandardModule

createFixed

public Module createFixed(Manifest mani,
                          Object history,
                          ClassLoader loader,
                          boolean autoload,
                          boolean eager,
                          ModuleManager mgr,
                          Events ev)
                   throws InvalidException
This method creates a "fixed" module. Fixed modules cannot be realoaded, are always enabled and are typically present on the classpath.

Throws:
InvalidException
Since:
2.7
See Also:
FixedModule

getClasspathDelegateClassLoader

public ClassLoader getClasspathDelegateClassLoader(ModuleManager mgr,
                                                   ClassLoader del)
Allows specifying different parent classloader of all modules classloaders.


removeBaseClassLoader

public boolean removeBaseClassLoader()
If this method returns true the parent the original classpath classloader will be removed from the parent classloaders of a module classloader.


org.netbeans.bootstrap/1 2.52

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.