org.jowidgets.classloading.api
Class SharedClassLoader

java.lang.Object
  extended by org.jowidgets.classloading.api.SharedClassLoader

public final class SharedClassLoader
extends Object


Method Summary
static void addClassLoader(ClassLoader classLoader)
          Adds a class loader to the shared class loader
static void addClassLoader(IClassLoaderReference classLoaderReference)
          Adds a class loader to the shared class loader
static ClassLoader getCompositeClassLoader()
          Gets the composite class loader that uses all registered class loaders to resolve the class to load.
static ISharedClassLoader getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ISharedClassLoader getInstance()

addClassLoader

public static void addClassLoader(IClassLoaderReference classLoaderReference)
Adds a class loader to the shared class loader

Parameters:
classLoaderReference - The class loader reference to add

addClassLoader

public static void addClassLoader(ClassLoader classLoader)
Adds a class loader to the shared class loader

Parameters:
classLoader - The class loader to add

getCompositeClassLoader

public static ClassLoader getCompositeClassLoader()
Gets the composite class loader that uses all registered class loaders to resolve the class to load. The shared class loader always uses the SystemClassLoader and the ThreadContextLocalClassLoader as default (e.g. if no classLoader was added)

Returns:
The composite class loader


Copyright © 2013. All rights reserved.