Package de.gebit.integrity.classloading
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 Summary
Modifier and TypeMethodDescriptionClass<?> loadClass(JavaClassReference aClassReference) Load the class defined by the providedJavaClassReference.Class<?> loadClass(JavaConstantReference aConstantReference) Load the class defined by the providedJavaConstantReference.Class<?> loadClass(MethodReference aMethodReference) Load the class defined by the providedMethodReference.Class<?> loadClass(OperationDefinition anOperationDefinition) Load the class defined by the providedOperationDefinition.Class<?> Loads the class given by the fully-qualified name.Class<?> loadClass(org.eclipse.xtext.common.types.JvmType aType) Load the class defined by the providedJvmType.loadMethod(MethodReference aMethodReference) First loads the class defined by the providedMethodReference, then loads the method.
-
Method Details
-
loadClass
Load the class defined by the providedMethodReference.- Parameters:
aMethodReference- the method reference referring to the class- Returns:
- the loaded class
- Throws:
ClassNotFoundException
-
loadClass
Load the class defined by the providedJavaConstantReference.- Parameters:
aConstantReference- the constant reference referring to the class- Returns:
- the loaded class
- Throws:
ClassNotFoundException
-
loadClass
Load the class defined by the providedJavaClassReference.- Parameters:
aClassReference- the class reference referring to the class- Returns:
- the loaded class
- Throws:
ClassNotFoundException
-
loadClass
Load the class defined by the providedJvmType.- Parameters:
aType- the type referring to the class- Returns:
- the loaded class
- Throws:
ClassNotFoundException
-
loadClass
Loads the class given by the fully-qualified name.- Parameters:
aClassName- the class to load- Returns:
- the loaded class
- Throws:
ClassNotFoundException
-
loadClass
Load the class defined by the providedOperationDefinition.- Parameters:
anOperationDefinition- the operation definition referring to the class- Returns:
- the loaded class
- Throws:
ClassNotFoundException
-
loadMethod
Method loadMethod(MethodReference aMethodReference) throws ClassNotFoundException, MethodNotFoundException First loads the class defined by the providedMethodReference, then loads the method.- Parameters:
aMethodReference- the method reference referring to class and method- Returns:
- the loaded method
- Throws:
ClassNotFoundExceptionMethodNotFoundException
-