net.sf.taverna.raven.repository.impl
Class LocalArtifactClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by net.sf.taverna.raven.repository.impl.LocalArtifactClassLoader

public class LocalArtifactClassLoader
extends java.net.URLClassLoader

Implementation of ClassLoader that uses the artifact metadata to manage any dependencies of the artifact


Method Summary
 java.net.URL findResource(java.lang.String name)
           
 java.util.Enumeration<java.net.URL> findResources(java.lang.String name)
           
 Artifact getArtifact()
           
 Repository getRepository()
           
 java.util.Enumeration<java.net.URL> getResources(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.net.URLClassLoader
getURLs, newInstance, newInstance
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, getParent, getResource, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

findResource

public java.net.URL findResource(java.lang.String name)
Overrides:
findResource in class java.net.URLClassLoader

findResources

public java.util.Enumeration<java.net.URL> findResources(java.lang.String name)
                                                  throws java.io.IOException
Overrides:
findResources in class java.net.URLClassLoader
Throws:
java.io.IOException

getArtifact

public Artifact getArtifact()

getRepository

public Repository getRepository()

getResources

public java.util.Enumeration<java.net.URL> getResources(java.lang.String name)
                                                 throws java.io.IOException
Overrides:
getResources in class java.lang.ClassLoader
Throws:
java.io.IOException

toString

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