Interface ResourceLoader.ClassFactory

  • All Implemented Interfaces:

    
    public interface ResourceLoader.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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Boolean match(String name) Check whether the factory can return the named class.
      abstract Class<?> loadClass(String name) Load the class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • match

         abstract 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

         abstract Class<?> loadClass(String name)

        Load the class.

        Parameters:
        name - the binary name of the class
        Returns:

        the class object