Class DummyClassLoader

All Implemented Interfaces:
IConfigurationClassLoader, org.springframework.beans.factory.DisposableBean, org.springframework.core.SmartClassLoader

public class DummyClassLoader extends AbstractClassLoader
Classloader which loads an empty Configuration.

Ordinarily only used for local testing. When head IBIS application and Configuration(s) to load are stored in separate projects, the DummyClassLoader can be used in the head IBIS application to prevent a "could not find config" exception.

Author:
Peter Leeuwenburgh
  • Constructor Details

    • DummyClassLoader

      public DummyClassLoader(ClassLoader parent)
  • Method Details

    • getLocalResource

      public URL getLocalResource(@NonNull String name)
      Specified by:
      getLocalResource in class AbstractClassLoader
      Parameters:
      name - of the file to search for in the current local classpath
      Returns:
      the URL of the file if found in the ClassLoader or null when the file cannot be found