com.caucho.loader
Class ClassLoaderConfig

java.lang.Object
  extended by com.caucho.loader.ClassLoaderConfig

public class ClassLoaderConfig
extends java.lang.Object

Class for configuration.


Constructor Summary
ClassLoaderConfig()
           
 
Method Summary
 void addDependency(ModuleConfig config)
          Adds a jar dependency, to be loaded from the repository
 void addIvyLoader(IvyLoader loader)
          Adds an ivy class loader.
 void addPriorityPackage(java.lang.String priorityPackage)
          Add a package for which this class loader will take precendence over the parent.
 CompilingLoader createCompilingLoader()
          Adds a compiling class loader.
 ModuleConfig createDependency()
          Adds a jar dependency, to be loaded from the repository
 EnhancerManager createEnhancer()
          Adds an enhancing loader.
 IvyLoader createIvyLoader()
          Creates an ivy class loader.
 LibraryLoader createLibraryLoader()
          Adds a library loader, e.g.
 ModuleConfig createModule()
          Creates an ivy class loader.
 SimpleLoader createSimpleLoader()
          Adds a simple class loader.
 TreeLoader createTreeLoader()
          Adds a tree loader.
 void init()
          init
 void setServletHack(boolean hack)
          Sets the servlet classloader hack.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassLoaderConfig

public ClassLoaderConfig()
                  throws ConfigException
Throws:
ConfigException
Method Detail

setServletHack

public void setServletHack(boolean hack)
Sets the servlet classloader hack.


createSimpleLoader

public SimpleLoader createSimpleLoader()
Adds a simple class loader.


createIvyLoader

public IvyLoader createIvyLoader()
Creates an ivy class loader.


createDependency

public ModuleConfig createDependency()
Adds a jar dependency, to be loaded from the repository


addDependency

public void addDependency(ModuleConfig config)
Adds a jar dependency, to be loaded from the repository


addIvyLoader

public void addIvyLoader(IvyLoader loader)
Adds an ivy class loader.


createLibraryLoader

public LibraryLoader createLibraryLoader()
Adds a library loader, e.g. WEB-INF/lib


createModule

public ModuleConfig createModule()
Creates an ivy class loader.


createCompilingLoader

public CompilingLoader createCompilingLoader()
Adds a compiling class loader.


createTreeLoader

public TreeLoader createTreeLoader()
Adds a tree loader.


createEnhancer

public EnhancerManager createEnhancer()
                               throws ConfigException
Adds an enhancing loader.

Throws:
ConfigException

addPriorityPackage

public void addPriorityPackage(java.lang.String priorityPackage)
Add a package for which this class loader will take precendence over the parent. Any class that has a qualified name that starts with the passed value will be loaded from this classloader instead of the parent classloader.


init

@PostConstruct
public void init()
          throws ConfigException
init

Throws:
ConfigException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object