com.caucho.loader.ivy
Class IvyLoader

java.lang.Object
  extended by com.caucho.loader.Loader
      extended by com.caucho.loader.JarListLoader
          extended by com.caucho.loader.ivy.IvyLoader
All Implemented Interfaces:
Dependency

public class IvyLoader
extends JarListLoader

Class loader which uses an ivy dependency


Field Summary
 
Fields inherited from class com.caucho.loader.JarListLoader
_jarList
 
Constructor Summary
IvyLoader()
          Creates a new ivy loader.
 
Method Summary
 void addDependency(IvyDependency dependency)
          Adds an ivy dependency
 IvyCache createCache()
          Sets the ivy cache
 Path getIvyFile()
          The ivy loader's path.
 void init()
          Initialize
 boolean isModified()
          True if any of the loaded classes have been modified.
 boolean logModified(java.util.logging.Logger log)
          True if the classes in the directory have changed.
 void setIvyFile(Path path)
          The ivy loader's configuration path.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.loader.JarListLoader
addJar, buildClassPath, clearJars, getClassEntry, getPath, getResources, isJarCacheEnabled, setLoader, validate
 
Methods inherited from class com.caucho.loader.Loader
buildSourcePath, destroy, getClassLoader, getCodeSource, getResource, getResourceAsStream, isDirectoryLoader, loadClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IvyLoader

public IvyLoader()
Creates a new ivy loader.

Method Detail

setIvyFile

public void setIvyFile(Path path)
The ivy loader's configuration path.


getIvyFile

public Path getIvyFile()
The ivy loader's path.


createCache

public IvyCache createCache()
Sets the ivy cache


addDependency

public void addDependency(IvyDependency dependency)
Adds an ivy dependency


init

@PostConstruct
public void init()
          throws ConfigException
Initialize

Overrides:
init in class JarListLoader
Throws:
ConfigException

isModified

public boolean isModified()
True if any of the loaded classes have been modified. If true, the caller should drop the classpath and create a new one.

Specified by:
isModified in interface Dependency
Overrides:
isModified in class JarListLoader

logModified

public boolean logModified(java.util.logging.Logger log)
True if the classes in the directory have changed.

Specified by:
logModified in interface Dependency
Overrides:
logModified in class JarListLoader

toString

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