Class OBClassLoader

  • All Implemented Interfaces:
    OBProvidable, OBSingleton
    Direct Known Subclasses:
    OBClassLoader.ClassOBClassLoader

    public class OBClassLoader
    extends Object
    implements OBSingleton
    The OBClassLoader is used to support different classloading scenarios. As a default two classloaders are present: the context (the default, used in Tomcat) and the class classloader. The class classloader is used in Ant tasks.

    Use the OBProvider to define which classloader in a specific environment.

    Author:
    mtaal
    • Constructor Detail

      • OBClassLoader

        public OBClassLoader()
    • Method Detail

      • loadClass

        public Class<?> loadClass​(String className)
                           throws ClassNotFoundException
        Load a class using the classloader. This method will throw an OBException if the class is not found. This exception is logged.
        Parameters:
        className - the name of the class to load
        Throws:
        ClassNotFoundException