/** * Initializes the name */ protected void initName(EnhancedAnnotated<T, ?> annotated) { boolean beanNameDefaulted = false; if (annotated.isAnnotationPresent(Named.class)) { String javaName = annotated.getAnnotation(Named.class).value(); if ("".equals(javaName)) { beanNameDefaulted = true; } else { this.name = javaName; return; } } if (beanNameDefaulted || (mergedStereotypes != null && mergedStereotypes.isBeanNameDefaulted())) { this.name = getDefaultName(annotated); } }
/** * Initializes the name */ protected void initName(EnhancedAnnotated<T, ?> annotated) { boolean beanNameDefaulted = false; if (annotated.isAnnotationPresent(Named.class)) { String javaName = annotated.getAnnotation(Named.class).value(); if ("".equals(javaName)) { beanNameDefaulted = true; } else { this.name = javaName; return; } } if (beanNameDefaulted || (mergedStereotypes != null && mergedStereotypes.isBeanNameDefaulted())) { this.name = getDefaultName(annotated); } }
/** * Initializes the name */ protected void initName(EnhancedAnnotated<T, ?> annotated) { boolean beanNameDefaulted = false; if (annotated.isAnnotationPresent(Named.class)) { String javaName = annotated.getAnnotation(Named.class).value(); if ("".equals(javaName)) { beanNameDefaulted = true; } else { this.name = javaName; return; } } if (beanNameDefaulted || (mergedStereotypes != null && mergedStereotypes.isBeanNameDefaulted())) { this.name = getDefaultName(annotated); } }
/** * Initializes the name */ protected void initName(EnhancedAnnotated<T, ?> annotated) { boolean beanNameDefaulted = false; if (annotated.isAnnotationPresent(Named.class)) { String javaName = annotated.getAnnotation(Named.class).value(); if ("".equals(javaName)) { beanNameDefaulted = true; } else { this.name = javaName; return; } } if (beanNameDefaulted || (mergedStereotypes != null && mergedStereotypes.isBeanNameDefaulted())) { this.name = getDefaultName(annotated); } }
/** * Initializes the name */ protected void initName(EnhancedAnnotated<T, ?> annotated) { boolean beanNameDefaulted = false; if (annotated.isAnnotationPresent(Named.class)) { String javaName = annotated.getAnnotation(Named.class).value(); if ("".equals(javaName)) { beanNameDefaulted = true; } else { this.name = javaName; return; } } if (beanNameDefaulted || (mergedStereotypes != null && mergedStereotypes.isBeanNameDefaulted())) { this.name = getDefaultName(annotated); } }
/** * Initializes the name */ protected void initName(EnhancedAnnotated<T, ?> annotated) { boolean beanNameDefaulted = false; if (annotated.isAnnotationPresent(Named.class)) { String javaName = annotated.getAnnotation(Named.class).value(); if ("".equals(javaName)) { beanNameDefaulted = true; } else { this.name = javaName; return; } } if (beanNameDefaulted || (mergedStereotypes != null && mergedStereotypes.isBeanNameDefaulted())) { this.name = getDefaultName(annotated); } }