Package org.h2.util

Interface Utils.ClassFactory

Enclosing class:
Utils

public static interface Utils.ClassFactory
The utility methods will try to use the provided class factories to convert binary name of class to Class object. Used by H2 OSGi Activator in order to provide a class from another bundle ClassLoader.
  • Method Summary

    Modifier and Type
    Method
    Description
    Load the class.
    boolean
    match(String name)
    Check whether the factory can return the named class.
  • Method Details

    • match

      boolean match(String name)
      Check whether the factory can return the named class.
      Parameters:
      name - the binary name of the class
      Returns:
      true if this factory can return a valid class for the provided class name
    • loadClass

      Class<?> loadClass(String name) throws ClassNotFoundException
      Load the class.
      Parameters:
      name - the binary name of the class
      Returns:
      the class object
      Throws:
      ClassNotFoundException - If the class is not handle by this factory