public abstract class ClasspathImportServiceBase extends Object implements ClasspathImportService
Constructor and Description |
---|
ClasspathImportServiceBase(Map<String,Object> transientConfiguration,
TimeAbacus timeAbacus,
Set<String> eventTypeAutoNames) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationImport(String importName) |
void |
addImport(String importName) |
protected ClasspathImportException |
convert(Class clazz,
Class[] paramTypes,
MethodResolverNoSuchCtorException e) |
protected ClasspathImportException |
convert(Class clazz,
String methodName,
Class[] paramTypes,
MethodResolverNoSuchMethodException e,
boolean isInstance) |
ClassForNameProvider |
getClassForNameProvider() |
ClassLoader |
getClassLoader() |
TimeAbacus |
getTimeAbacus() |
protected ClasspathImportException |
makeClassNotFoundEx(String className,
Exception e) |
Class |
resolveClass(String className,
boolean forAnnotation) |
Class |
resolveClassForBeanEventType(String fullyQualClassName) |
protected Class |
resolveClassInternal(String className,
boolean requireAnnotation,
boolean forAnnotationUse)
Finds a class by class name using the auto-import information provided.
|
Constructor |
resolveCtor(Class clazz,
Class[] paramTypes) |
Method |
resolveMethod(Class clazz,
String methodName,
Class[] paramTypes,
boolean[] allowEventBeanType,
boolean[] allowEventBeanCollType) |
Method |
resolveMethodOverloadChecked(String className,
String methodName,
Class[] paramTypes,
boolean[] allowEventBeanType,
boolean[] allowEventBeanCollType) |
protected void |
validateImportAndAdd(String importName,
List<String> imports) |
public ClassLoader getClassLoader()
getClassLoader
in interface ClasspathImportService
public TimeAbacus getTimeAbacus()
getTimeAbacus
in interface ClasspathImportService
public void addImport(String importName) throws ClasspathImportException
ClasspathImportException
public void addAnnotationImport(String importName) throws ClasspathImportException
ClasspathImportException
public Method resolveMethodOverloadChecked(String className, String methodName, Class[] paramTypes, boolean[] allowEventBeanType, boolean[] allowEventBeanCollType) throws ClasspathImportException
resolveMethodOverloadChecked
in interface ClasspathImportService
ClasspathImportException
public Class resolveClass(String className, boolean forAnnotation) throws ClasspathImportException
resolveClass
in interface ClasspathImportService
ClasspathImportException
public Method resolveMethod(Class clazz, String methodName, Class[] paramTypes, boolean[] allowEventBeanType, boolean[] allowEventBeanCollType) throws ClasspathImportException
resolveMethod
in interface ClasspathImportService
ClasspathImportException
public Constructor resolveCtor(Class clazz, Class[] paramTypes) throws ClasspathImportException
resolveCtor
in interface ClasspathImportService
ClasspathImportException
protected Class resolveClassInternal(String className, boolean requireAnnotation, boolean forAnnotationUse) throws ClassNotFoundException
className
- is the class name to findrequireAnnotation
- whether the class must be an annotationforAnnotationUse
- whether resolving class for use with annotationsClassNotFoundException
- if the class cannot be loadedpublic ClassForNameProvider getClassForNameProvider()
getClassForNameProvider
in interface ClasspathImportService
public Class resolveClassForBeanEventType(String fullyQualClassName) throws ClasspathImportException
resolveClassForBeanEventType
in interface ClasspathImportService
ClasspathImportException
protected void validateImportAndAdd(String importName, List<String> imports) throws ClasspathImportException
ClasspathImportException
protected ClasspathImportException makeClassNotFoundEx(String className, Exception e)
protected ClasspathImportException convert(Class clazz, Class[] paramTypes, MethodResolverNoSuchCtorException e)
protected ClasspathImportException convert(Class clazz, String methodName, Class[] paramTypes, MethodResolverNoSuchMethodException e, boolean isInstance)
Copyright © 2005–2018. All rights reserved.