Interface IntegrityClassLoader

  • All Known Implementing Classes:
    DefaultIntegrityClassLoader

    public interface IntegrityClassLoader
    This service is used by Integrity to internally load classes for test execution.
    Author:
    Rene Schneider - initial API and implementation
    • Method Detail

      • loadClass

        java.lang.Class<?> loadClass​(MethodReference aMethodReference)
                              throws java.lang.ClassNotFoundException
        Load the class defined by the provided MethodReference.
        Parameters:
        aMethodReference - the method reference referring to the class
        Returns:
        the loaded class
        Throws:
        java.lang.ClassNotFoundException
      • loadClass

        java.lang.Class<?> loadClass​(JavaConstantReference aConstantReference)
                              throws java.lang.ClassNotFoundException
        Load the class defined by the provided JavaConstantReference.
        Parameters:
        aConstantReference - the constant reference referring to the class
        Returns:
        the loaded class
        Throws:
        java.lang.ClassNotFoundException
      • loadClass

        java.lang.Class<?> loadClass​(JavaClassReference aClassReference)
                              throws java.lang.ClassNotFoundException
        Load the class defined by the provided JavaClassReference.
        Parameters:
        aClassReference - the class reference referring to the class
        Returns:
        the loaded class
        Throws:
        java.lang.ClassNotFoundException
      • loadClass

        java.lang.Class<?> loadClass​(org.eclipse.xtext.common.types.JvmType aType)
                              throws java.lang.ClassNotFoundException
        Load the class defined by the provided JvmType.
        Parameters:
        aType - the type referring to the class
        Returns:
        the loaded class
        Throws:
        java.lang.ClassNotFoundException
      • loadClass

        java.lang.Class<?> loadClass​(java.lang.String aClassName)
                              throws java.lang.ClassNotFoundException
        Loads the class given by the fully-qualified name.
        Parameters:
        aClassName - the class to load
        Returns:
        the loaded class
        Throws:
        java.lang.ClassNotFoundException
      • loadClass

        java.lang.Class<?> loadClass​(OperationDefinition anOperationDefinition)
                              throws java.lang.ClassNotFoundException
        Load the class defined by the provided OperationDefinition.
        Parameters:
        anOperationDefinition - the operation definition referring to the class
        Returns:
        the loaded class
        Throws:
        java.lang.ClassNotFoundException
      • loadMethod

        java.lang.reflect.Method loadMethod​(MethodReference aMethodReference)
                                     throws java.lang.ClassNotFoundException,
                                            MethodNotFoundException
        First loads the class defined by the provided MethodReference, then loads the method.
        Parameters:
        aMethodReference - the method reference referring to class and method
        Returns:
        the loaded method
        Throws:
        java.lang.ClassNotFoundException
        MethodNotFoundException