@Override public boolean test(ClassFileInfo input) { return type.getName().equals(input.getClassName()); } }
/** * * @param classFileInfo * @param checkTypeModifiers - this flag reflects whether Jandex version including fix for JANDEX-37 could be used * @return */ public static boolean isTypeManagedBeanOrDecoratorOrInterceptor(ClassFileInfo classFileInfo, boolean checkTypeModifiers) { boolean isTypeManagedBean = ((classFileInfo.getModifiers() & BytecodeUtils.ENUM) == 0) && !classFileInfo.isAssignableTo(Extension.class) && classFileInfo.hasCdiConstructor() && (!Modifier.isAbstract(classFileInfo.getModifiers()) || classFileInfo.isAnnotationDeclared(Decorator.class)); if (checkTypeModifiers) { return isTypeManagedBean && (classFileInfo.isTopLevelClass() || Modifier.isStatic(classFileInfo.getModifiers())); } else { return isTypeManagedBean; } }
public static boolean isDecoratorDeclaringInAppropriateConstructor(ClassFileInfo classFileInfo) { return !classFileInfo.hasCdiConstructor() && classFileInfo.isAnnotationDeclared(Decorator.class); }
if ((classFileInfo.getModifiers() & BytecodeUtils.ANNOTATION) != 0) { if (classFileInfo.isVetoed()) { return null; if (classFileInfo.getNestingType().equals(NestingType.NESTED_LOCAL) || classFileInfo.getNestingType().equals(NestingType.NESTED_ANONYMOUS)) { return null; BootstrapLogger.LOG.decoratorWithNonCdiConstructor(classFileInfo.getClassName());
if ((classFileInfo.getModifiers() & BytecodeUtils.ANNOTATION) != 0) { if (classFileInfo.isVetoed()) { return null; BootstrapLogger.LOG.decoratorWithNonCdiConstructor(classFileInfo.getClassName());
private boolean containsRequiredAnnotation(ClassFileInfo classInfo, ContainerLifecycleEventObserverMethod<?> observer) { if (observer.getRequiredAnnotations().isEmpty()) { return true; } for (Class<? extends Annotation> annotation : observer.getRequiredAnnotations()) { if (classInfo.containsAnnotation(annotation)) { return true; } } return false; }
/** * <b>Deprecated</b> - use {@code getClassNestingType()} instead. * * Indicates whether this class is a top-level class or an inner class. * * @return true if this class is a top-level class, false otherwise */ default boolean isTopLevelClass() { return getNestingType().equals(NestingType.TOP_LEVEL); }
@Override public boolean test(ClassFileInfo input) { return input.isAssignableTo(type); } }
if ((classFileInfo.getModifiers() & BytecodeUtils.ANNOTATION) != 0) { if (classFileInfo.isVetoed()) { return null; if (classFileInfo.getNestingType().equals(NestingType.NESTED_LOCAL) || classFileInfo.getNestingType().equals(NestingType.NESTED_ANONYMOUS)) { return null; BootstrapLogger.LOG.decoratorWithNonCdiConstructor(classFileInfo.getClassName());
public static boolean isDecoratorDeclaringInAppropriateConstructor(ClassFileInfo classFileInfo) { return !classFileInfo.hasCdiConstructor() && classFileInfo.isAnnotationDeclared(Decorator.class); }
private boolean containsRequiredAnnotation(ClassFileInfo classInfo, ContainerLifecycleEventObserverMethod<?> observer) { if (observer.getRequiredAnnotations().isEmpty()) { return true; } for (Class<? extends Annotation> annotation : observer.getRequiredAnnotations()) { if (classInfo.containsAnnotation(annotation)) { return true; } } return false; }
/** * <b>Deprecated</b> - use {@code getClassNestingType()} instead. * * Indicates whether this class is a top-level class or an inner class. * * @return true if this class is a top-level class, false otherwise */ default boolean isTopLevelClass() { return getNestingType().equals(NestingType.TOP_LEVEL); }
@Override public boolean test(ClassFileInfo input) { return input.isAssignableTo(type); } }
/** * * @param classFileInfo * @param checkTypeModifiers - this flag reflects whether Jandex version including fix for JANDEX-37 could be used * @return */ public static boolean isTypeManagedBeanOrDecoratorOrInterceptor(ClassFileInfo classFileInfo, boolean checkTypeModifiers) { boolean isTypeManagedBean = ((classFileInfo.getModifiers() & BytecodeUtils.ENUM) == 0) && !classFileInfo.isAssignableTo(Extension.class) && classFileInfo.hasCdiConstructor() && (!Modifier.isAbstract(classFileInfo.getModifiers()) || classFileInfo.isAnnotationDeclared(Decorator.class)); if (checkTypeModifiers) { return isTypeManagedBean && (classFileInfo.isTopLevelClass() || Modifier.isStatic(classFileInfo.getModifiers())); } else { return isTypeManagedBean; } }
if ((classFileInfo.getModifiers() & BytecodeUtils.ANNOTATION) != 0) { if (classFileInfo.isVetoed()) { return null; if (classFileInfo.getNestingType().equals(NestingType.NESTED_LOCAL) || classFileInfo.getNestingType().equals(NestingType.NESTED_ANONYMOUS)) { return null; BootstrapLogger.LOG.decoratorWithNonCdiConstructor(classFileInfo.getClassName());
public static boolean isDecoratorDeclaringInAppropriateConstructor(ClassFileInfo classFileInfo) { return !classFileInfo.hasCdiConstructor() && classFileInfo.isAnnotationDeclared(Decorator.class); }
private boolean containsRequiredAnnotation(ClassFileInfo classInfo, ExtensionObserverMethodImpl<?, ?> observer) { if (observer.getRequiredAnnotations().isEmpty()) { return true; } for (Class<? extends Annotation> annotation : observer.getRequiredAnnotations()) { if (classInfo.containsAnnotation(annotation)) { return true; } } return false; }
/** * <b>Deprecated</b> - use {@code getClassNestingType()} instead. * * Indicates whether this class is a top-level class or an inner class. * * @return true if this class is a top-level class, false otherwise */ default boolean isTopLevelClass() { return getNestingType().equals(NestingType.TOP_LEVEL); }
@Override public boolean test(ClassFileInfo input) { return input.isAssignableTo(type); } }
@Override public boolean test(ClassFileInfo input) { return type.getName().equals(input.getClassName()); } }