Class ClasspathImportUtil
java.lang.Object
com.espertech.esper.common.internal.settings.ClasspathImportUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
getAnnotationHook
(Annotation[] annotations, HookType hookType, Class interfaceExpected, ClasspathImportService classpathImportService) Returns an instance of a hook as specified by an annotation.
-
Constructor Details
-
ClasspathImportUtil
public ClasspathImportUtil()
-
-
Method Details
-
getAnnotationHook
public static Object getAnnotationHook(Annotation[] annotations, HookType hookType, Class interfaceExpected, ClasspathImportService classpathImportService) throws ExprValidationException Returns an instance of a hook as specified by an annotation.- Parameters:
annotations
- to searchhookType
- type to look forinterfaceExpected
- interface requiredclasspathImportService
- for resolving references- Returns:
- hook instance
- Throws:
ExprValidationException
- if instantiation failed
-