Class ClasspathImportUtil

java.lang.Object
com.espertech.esper.common.internal.settings.ClasspathImportUtil

public class ClasspathImportUtil extends Object
  • 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 search
      hookType - type to look for
      interfaceExpected - interface required
      classpathImportService - for resolving references
      Returns:
      hook instance
      Throws:
      ExprValidationException - if instantiation failed