Remote System Explorer DataStore
Release 1.0

org.eclipse.dstore.core.util
Class ExternalLoader

java.lang.Object
  extended byorg.eclipse.dstore.core.util.ExternalLoader

public class ExternalLoader
extends Object

ExternalLoader is a ClassLoader wrapper used for loading external tools that are not in the same classpath as the DataStore. Each ExternalLoader contains a load scope, a list of classpaths that it's class loader is able to load.


Constructor Summary
ExternalLoader(ClassLoader classLoader, ArrayList loadScope)
          Constructor
ExternalLoader(ClassLoader classLoader, String loadScope)
          Constructor
 
Method Summary
 boolean canLoad(String source)
          Indicates whether this external loader can load a particular class
 Class loadClass(String source)
          Loads the specified class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalLoader

public ExternalLoader(ClassLoader classLoader,
                      String loadScope)
Constructor

Parameters:
classLoader - the classloader
loadScope - the scope in which the classloader can load classes

ExternalLoader

public ExternalLoader(ClassLoader classLoader,
                      ArrayList loadScope)
Constructor

Parameters:
classLoader - the classloader
loadScope - the scope in which the classloader can load classes
Method Detail

canLoad

public boolean canLoad(String source)
Indicates whether this external loader can load a particular class

Parameters:
source - a qualified classname
Returns:
true if it can load the clas

loadClass

public Class loadClass(String source)
                throws ClassNotFoundException
Loads the specified class

Parameters:
source - a qualified classname
Returns:
the loaded class
Throws:
ClassNotFoundException

Remote System Explorer DataStore
Release 1.0

Guidelines for using DataStore APIs.