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 java.lang.Class<?>loadClass(JavaClassReference aClassReference)Load the class defined by the providedJavaClassReference.java.lang.Class<?>loadClass(JavaConstantReference aConstantReference)Load the class defined by the providedJavaConstantReference.java.lang.Class<?>loadClass(MethodReference aMethodReference)Load the class defined by the providedMethodReference.java.lang.Class<?>loadClass(OperationDefinition anOperationDefinition)Load the class defined by the providedOperationDefinition.java.lang.Class<?>loadClass(java.lang.String aClassName)Loads the class given by the fully-qualified name.java.lang.Class<?>loadClass(org.eclipse.xtext.common.types.JvmType aType)Load the class defined by the providedJvmType.java.lang.reflect.MethodloadMethod(MethodReference aMethodReference)First loads the class defined by the providedMethodReference, then loads the method.
-
-
-
Method Detail
-
loadClass
java.lang.Class<?> loadClass(MethodReference aMethodReference) throws java.lang.ClassNotFoundException
Load the class defined by the providedMethodReference.- 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 providedJavaConstantReference.- 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 providedJavaClassReference.- 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.ClassNotFoundExceptionLoad the class defined by the providedJvmType.- 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.ClassNotFoundExceptionLoads 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 providedOperationDefinition.- 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 providedMethodReference, then loads the method.- Parameters:
aMethodReference- the method reference referring to class and method- Returns:
- the loaded method
- Throws:
java.lang.ClassNotFoundExceptionMethodNotFoundException
-
-