Enhydra 3.1 API

org.enhydra.xml.xmlc.reloading
Interface ResourceLoader


public interface ResourceLoader

Interface for objects that are used to abstract particular class loader implementations. XMLC reloading/recompilation needs the following functionality that is not part of ClassLoader:

An instance of a class implementing this interface is associated with each instance of XMLCReloadingFactory and it's primary clas loader. This class is then used to create the selective class loaders.

A class implement this interface must have a constructor with the signature:

   public XXXResourceLoader(ClassLoader classLoader,
                            XMLCLogger logger)
 


Method Summary
 java.lang.ClassLoader createSelectiveClassLoader(java.lang.String className)
          Create a selective class loader for the specified class and its subclasses.
 java.lang.ClassLoader getClassLoader()
          Get the class loader associated with this ResourceLoader instance.
 java.net.URL[] getClassPath()
          Get the classpath that will be searched to find classes.
 

Method Detail

getClassLoader

public java.lang.ClassLoader getClassLoader()
Get the class loader associated with this ResourceLoader instance.

getClassPath

public java.net.URL[] getClassPath()
Get the classpath that will be searched to find classes. This should include all parents in the order that they will be searched. It is used for constructing a CLASSPATH to pass to the Java compiler.

createSelectiveClassLoader

public java.lang.ClassLoader createSelectiveClassLoader(java.lang.String className)
Create a selective class loader for the specified class and its subclasses. All other classes are delegated to the ClassLoader assocation with this ResourceLoader.

Enhydra 3.1 API