Class ClasspathImportServiceBase
java.lang.Object
com.espertech.esper.common.internal.settings.ClasspathImportServiceBase
- All Implemented Interfaces:
ClasspathImportService
- Direct Known Subclasses:
ClasspathImportServiceCompileTimeImpl
,ClasspathImportServiceRuntime
-
Constructor Summary
ConstructorDescriptionClasspathImportServiceBase
(Map<String, Object> transientConfiguration, TimeAbacus timeAbacus, Set<String> eventTypeAutoNames) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotationImport
(String importName) void
protected ClasspathImportException
convert
(Class clazz, EPType[] paramTypes, MethodResolverNoSuchCtorException e) protected ClasspathImportException
convert
(Class clazz, String methodName, EPType[] paramTypes, MethodResolverNoSuchMethodException e, boolean isInstance) protected ClasspathImportException
makeClassNotFoundEx
(String className, Exception e) resolveClass
(String className, boolean forAnnotation, ClasspathExtensionClass classpathExtension) resolveClassForBeanEventType
(String fullyQualClassName) protected Class
resolveClassInternal
(String className, boolean requireAnnotation, boolean forAnnotationUse, ClasspathExtensionClass classpathExtension) Finds a class by class name using the auto-import information provided.resolveCtor
(Class clazz, EPType[] paramTypes) resolveMethod
(Class clazz, String methodName, EPType[] paramTypes, boolean[] allowEventBeanType, boolean[] allowEventBeanCollType) resolveMethodOverloadChecked
(String className, String methodName, EPType[] paramTypes, boolean[] allowEventBeanType, boolean[] allowEventBeanCollType, ClasspathExtensionClass classpathExtension) protected void
validateImportAndAdd
(String importName, List<String> imports)
-
Constructor Details
-
ClasspathImportServiceBase
-
-
Method Details
-
getClassLoader
- Specified by:
getClassLoader
in interfaceClasspathImportService
-
getTimeAbacus
- Specified by:
getTimeAbacus
in interfaceClasspathImportService
-
addImport
- Throws:
ClasspathImportException
-
addAnnotationImport
- Throws:
ClasspathImportException
-
resolveMethodOverloadChecked
public Method resolveMethodOverloadChecked(String className, String methodName, EPType[] paramTypes, boolean[] allowEventBeanType, boolean[] allowEventBeanCollType, ClasspathExtensionClass classpathExtension) throws ClasspathImportException - Specified by:
resolveMethodOverloadChecked
in interfaceClasspathImportService
- Throws:
ClasspathImportException
-
resolveClass
public Class resolveClass(String className, boolean forAnnotation, ClasspathExtensionClass classpathExtension) throws ClasspathImportException - Specified by:
resolveClass
in interfaceClasspathImportService
- Throws:
ClasspathImportException
-
resolveCtor
- Specified by:
resolveCtor
in interfaceClasspathImportService
- Throws:
ClasspathImportException
-
resolveMethod
public Method resolveMethod(Class clazz, String methodName, EPType[] paramTypes, boolean[] allowEventBeanType, boolean[] allowEventBeanCollType) throws ClasspathImportException - Specified by:
resolveMethod
in interfaceClasspathImportService
- Throws:
ClasspathImportException
-
resolveClassInternal
protected Class resolveClassInternal(String className, boolean requireAnnotation, boolean forAnnotationUse, ClasspathExtensionClass classpathExtension) throws ClassNotFoundException Finds a class by class name using the auto-import information provided.- Parameters:
className
- is the class name to findrequireAnnotation
- whether the class must be an annotationforAnnotationUse
- whether resolving class for use with annotationsclasspathExtension
- for additional classes- Returns:
- class
- Throws:
ClassNotFoundException
- if the class cannot be loaded
-
getClassForNameProvider
- Specified by:
getClassForNameProvider
in interfaceClasspathImportService
-
resolveClassForBeanEventType
public Class resolveClassForBeanEventType(String fullyQualClassName) throws ClasspathImportException - Specified by:
resolveClassForBeanEventType
in interfaceClasspathImportService
- Throws:
ClasspathImportException
-
validateImportAndAdd
protected void validateImportAndAdd(String importName, List<String> imports) throws ClasspathImportException - Throws:
ClasspathImportException
-
makeClassNotFoundEx
-
convert
protected ClasspathImportException convert(Class clazz, EPType[] paramTypes, MethodResolverNoSuchCtorException e) -
convert
protected ClasspathImportException convert(Class clazz, String methodName, EPType[] paramTypes, MethodResolverNoSuchMethodException e, boolean isInstance)
-