public class ClasspathImportUtil extends Object
Constructor and Description |
---|
ClasspathImportUtil() |
Modifier and Type | Method and Description |
---|---|
static Object |
getAnnotationHook(Annotation[] annotations,
HookType hookType,
Class interfaceExpected,
ClasspathImportService classpathImportService)
Returns an instance of a hook as specified by an annotation.
|
public static Object getAnnotationHook(Annotation[] annotations, HookType hookType, Class interfaceExpected, ClasspathImportService classpathImportService) throws ExprValidationException
annotations
- to searchhookType
- type to look forinterfaceExpected
- interface requiredclasspathImportService
- for resolving referencesExprValidationException
- if instantiation failedCopyright © 2005–2018. All rights reserved.