private Set<Type> getBeanTypes(Class<?> implClazz, Type... types) { Set<Type> beanTypes = new HashSet<>(); Collections.addAll(beanTypes, types); beanTypes.add(implClazz); // Add all the interfaces (and extended interfaces) implemented directly by the impl class beanTypes.addAll(Reflections.getInterfaceClosure(implClazz)); return beanTypes; }
private Set<Type> getBeanTypes(Class<?> implClazz, Type... types) { Set<Type> beanTypes = new HashSet<>(); Collections.addAll(beanTypes, types); beanTypes.add(implClazz); // Add all the interfaces (and extended interfaces) implemented directly by the impl class beanTypes.addAll(Reflections.getInterfaceClosure(implClazz)); return beanTypes; }
/** * Checks if the given AnnotatedType is sensible, otherwise provides warnings. */ private static void checkSensibility(AnnotatedType<?> type) { // check if it has a constructor if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) { MetadataLogger.LOG.noConstructor(type); } Set<Class<?>> hierarchy = new HashSet<Class<?>>(); for (Class<?> clazz = type.getJavaClass(); clazz != null; clazz = clazz.getSuperclass()) { hierarchy.add(clazz); hierarchy.addAll(Reflections.getInterfaceClosure(clazz)); } checkMembersBelongToHierarchy(type.getConstructors(), hierarchy, type); checkMembersBelongToHierarchy(type.getMethods(), hierarchy, type); checkMembersBelongToHierarchy(type.getFields(), hierarchy, type); }
/** * Checks if the given AnnotatedType is sensible, otherwise provides warnings. */ private static void checkSensibility(AnnotatedType<?> type) { // check if it has a constructor if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) { MetadataLogger.LOG.noConstructor(type); } Set<Class<?>> hierarchy = new HashSet<Class<?>>(); for (Class<?> clazz = type.getJavaClass(); clazz != null; clazz = clazz.getSuperclass()) { hierarchy.add(clazz); hierarchy.addAll(Reflections.getInterfaceClosure(clazz)); } checkMembersBelongToHierarchy(type.getConstructors(), hierarchy, type); checkMembersBelongToHierarchy(type.getMethods(), hierarchy, type); checkMembersBelongToHierarchy(type.getFields(), hierarchy, type); }
/** * Checks if the given AnnotatedType is sensible, otherwise provides warnings. */ private static void checkSensibility(AnnotatedType<?> type) { // check if it has a constructor if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) { MetadataLogger.LOG.noConstructor(type); } Set<Class<?>> hierarchy = new HashSet<Class<?>>(); for (Class<?> clazz = type.getJavaClass(); clazz != null; clazz = clazz.getSuperclass()) { hierarchy.add(clazz); hierarchy.addAll(Reflections.getInterfaceClosure(clazz)); } checkMembersBelongToHierarchy(type.getConstructors(), hierarchy, type); checkMembersBelongToHierarchy(type.getMethods(), hierarchy, type); checkMembersBelongToHierarchy(type.getFields(), hierarchy, type); }
/** * Checks if the given AnnotatedType is sensible, otherwise provides warnings. */ private static void checkSensibility(AnnotatedType<?> type) { // check if it has a constructor if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) { MetadataLogger.LOG.noConstructor(type); } Set<Class<?>> hierarchy = new HashSet<Class<?>>(); for (Class<?> clazz = type.getJavaClass(); clazz != null; clazz = clazz.getSuperclass()) { hierarchy.add(clazz); hierarchy.addAll(Reflections.getInterfaceClosure(clazz)); } checkMembersBelongToHierarchy(type.getConstructors(), hierarchy, type); checkMembersBelongToHierarchy(type.getMethods(), hierarchy, type); checkMembersBelongToHierarchy(type.getFields(), hierarchy, type); }
/** * Checks if the given AnnotatedType is sensible, otherwise provides warnings. */ private static void checkSensibility(AnnotatedType<?> type) { // check if it has a constructor if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) { MetadataLogger.LOG.noConstructor(type); } Set<Class<?>> hierarchy = new HashSet<Class<?>>(); for (Class<?> clazz = type.getJavaClass(); clazz != null; clazz = clazz.getSuperclass()) { hierarchy.add(clazz); hierarchy.addAll(Reflections.getInterfaceClosure(clazz)); } checkMembersBelongToHierarchy(type.getConstructors(), hierarchy, type); checkMembersBelongToHierarchy(type.getMethods(), hierarchy, type); checkMembersBelongToHierarchy(type.getFields(), hierarchy, type); }
/** * Checks if the given AnnotatedType is sensible, otherwise provides warnings. */ private static void checkSensibility(AnnotatedType<?> type) { // check if it has a constructor if (type.getConstructors().isEmpty() && !type.getJavaClass().isInterface()) { MetadataLogger.LOG.noConstructor(type); } Set<Class<?>> hierarchy = new HashSet<Class<?>>(); for (Class<?> clazz = type.getJavaClass(); clazz != null; clazz = clazz.getSuperclass()) { hierarchy.add(clazz); hierarchy.addAll(Reflections.getInterfaceClosure(clazz)); } checkMembersBelongToHierarchy(type.getConstructors(), hierarchy, type); checkMembersBelongToHierarchy(type.getMethods(), hierarchy, type); checkMembersBelongToHierarchy(type.getFields(), hierarchy, type); }
addMethods(cls, proxyClassType, staticConstructor); if (isBeanClassAbstract && Modifier.isAbstract(cls.getModifiers())) { for (Class<?> implementedInterface : Reflections.getInterfaceClosure(cls)) { if (!additionalInterfaces.contains(implementedInterface)) { addMethods(implementedInterface, proxyClassType, staticConstructor);
addMethods(cls, proxyClassType, staticConstructor); if (isBeanClassAbstract && Modifier.isAbstract(cls.getModifiers())) { for (Class<?> implementedInterface : Reflections.getInterfaceClosure(cls)) { if (!additionalInterfaces.contains(implementedInterface)) { addMethods(implementedInterface, proxyClassType, staticConstructor);
addMethods(cls, proxyClassType, staticConstructor); if (isBeanClassAbstract && Modifier.isAbstract(cls.getModifiers())) { for (Class<?> implementedInterface : Reflections.getInterfaceClosure(cls)) { if (!additionalInterfaces.contains(implementedInterface)) { addMethods(implementedInterface, proxyClassType, staticConstructor);
addMethods(cls, proxyClassType, staticConstructor); if (isBeanClassAbstract && Modifier.isAbstract(cls.getModifiers())) { for (Class<?> implementedInterface : Reflections.getInterfaceClosure(cls)) { if (!additionalInterfaces.contains(implementedInterface)) { addMethods(implementedInterface, proxyClassType, staticConstructor);
addMethods(cls, proxyClassType, staticConstructor); if (isBeanClassAbstract && Modifier.isAbstract(cls.getModifiers())) { for (Class<?> implementedInterface : Reflections.getInterfaceClosure(cls)) { if (!additionalInterfaces.contains(implementedInterface)) { addMethods(implementedInterface, proxyClassType, staticConstructor);
addMethods(cls, proxyClassType, staticConstructor); if (isBeanClassAbstract && Modifier.isAbstract(cls.getModifiers())) { for (Class<?> implementedInterface : Reflections.getInterfaceClosure(cls)) { if (!additionalInterfaces.contains(implementedInterface)) { addMethods(implementedInterface, proxyClassType, staticConstructor);
for (Class<?> interfaceClazz : Reflections.getInterfaceClosure(annotatedType.getJavaClass())) { for (Method method : interfaceClazz.getDeclaredMethods()) { if (Reflections.isDefault(method)) {
for (Class<?> interfaceClazz : Reflections.getInterfaceClosure(annotatedType.getJavaClass())) { for (Method method : interfaceClazz.getDeclaredMethods()) { if (Reflections.isDefault(method)) {
for (Class<?> interfaceClazz : Reflections.getInterfaceClosure(annotatedType.getJavaClass())) { for (Method method : interfaceClazz.getDeclaredMethods()) { if (Reflections.isDefault(method)) {
for (Class<?> interfaceClazz : Reflections.getInterfaceClosure(annotatedType.getJavaClass())) { for (Method method : interfaceClazz.getDeclaredMethods()) { if (Reflections.isDefault(method)) {
for (Class<?> interfaceClazz : Reflections.getInterfaceClosure(annotatedType.getJavaClass())) { for (Method method : interfaceClazz.getDeclaredMethods()) { if (Reflections.isDefault(method)) {
for (Class<?> interfaceClazz : Reflections.getInterfaceClosure(javaClass)) { EnhancedAnnotatedType<?> interfaceType = classTransformer.getEnhancedAnnotatedType(interfaceClazz, slim.getIdentifier().getBdaId()); for (EnhancedAnnotatedMethod<?, ?> interfaceMethod : interfaceType.getEnhancedMethods()) {