Package de.gebit.integrity.classloading
Interface IntegrityClassLoader
-
- All Known Implementing Classes:
DefaultIntegrityClassLoader
public interface IntegrityClassLoaderThis service is used by Integrity to internally load classes for test execution.- Author:
- Rene Schneider - initial API and implementation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<?>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<?>loadClass(String aClassName)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.MethodloadMethod(MethodReference aMethodReference)First loads the class defined by the providedMethodReference, then loads the method.
-
-
-
Method Detail
-
loadClass
Class<?> loadClass(MethodReference aMethodReference) throws ClassNotFoundException
Load the class defined by the providedMethodReference.- Parameters:
aMethodReference- the method reference referring to the class- Returns:
- the loaded class
- Throws:
ClassNotFoundException
-
loadClass
Class<?> loadClass(JavaConstantReference aConstantReference) throws ClassNotFoundException
Load the class defined by the providedJavaConstantReference.- Parameters:
aConstantReference- the constant reference referring to the class- Returns:
- the loaded class
- Throws:
ClassNotFoundException
-
loadClass
Class<?> loadClass(JavaClassReference aClassReference) throws ClassNotFoundException
Load the class defined by the providedJavaClassReference.- Parameters:
aClassReference- the class reference referring to the class- Returns:
- the loaded class
- Throws:
ClassNotFoundException
-
loadClass
Class<?> loadClass(org.eclipse.xtext.common.types.JvmType aType) throws ClassNotFoundException
Load the class defined by the providedJvmType.- Parameters:
aType- the type referring to the class- Returns:
- the loaded class
- Throws:
ClassNotFoundException
-
loadClass
Class<?> loadClass(String aClassName) throws ClassNotFoundException
Loads the class given by the fully-qualified name.- Parameters:
aClassName- the class to load- Returns:
- the loaded class
- Throws:
ClassNotFoundException
-
loadClass
Class<?> loadClass(OperationDefinition anOperationDefinition) throws ClassNotFoundException
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
-
-