Refine search
/** * Validates the data for correct annotation */ protected void initValid(EnhancedAnnotation<T> annotatedAnnotation) { this.valid = false; for (Class<? extends Annotation> annotationType : getMetaAnnotationTypes()) { if (annotatedAnnotation.isAnnotationPresent(annotationType)) { this.valid = true; } } }
/** * Gets a string representation of the annotation model * * @return The string representation */ @Override public String toString() { return (isValid() ? "Valid" : "Invalid") + " annotation model for " + getRawType(); }
/** * Initializes the type */ protected void initType(EnhancedAnnotation<T> annotatedAnnotation) { if (!Annotation.class.isAssignableFrom(getRawType())) { throw MetadataLogger.LOG.metaAnnotationOnWrongType(getMetaAnnotationTypes(), getRawType()); } }
@Override protected void check(EnhancedAnnotation<T> annotatedAnnotation) { super.check(annotatedAnnotation); if (isValid()) { if (!annotatedAnnotation.isAnnotationPresent(Target.class)) { ReflectionLogger.LOG.missingTarget(annotatedAnnotation); } else if (!Arrays2.unorderedEquals(annotatedAnnotation.getAnnotation(Target.class).value(), METHOD, FIELD, TYPE)) { ReflectionLogger.LOG.missingTargetMethodFieldType(annotatedAnnotation); } } }
@Override protected void init(EnhancedAnnotation<T> annotatedAnnotation) { super.init(annotatedAnnotation); if (valid) { initAlternative(annotatedAnnotation); initDefaultScopeType(annotatedAnnotation); initBeanNameDefaulted(annotatedAnnotation); initInterceptorBindings(annotatedAnnotation); initInheritedStereotypes(annotatedAnnotation); checkBindings(annotatedAnnotation); this.metaAnnotations = annotatedAnnotation.getAnnotations(); } }
@Override protected void init(EnhancedAnnotation<T> annotatedAnnotation) { initNonBindingMembers(annotatedAnnotation); super.init(annotatedAnnotation); }
@Override protected void check(EnhancedAnnotation<T> annotatedAnnotation) { super.check(annotatedAnnotation); if (isValid()) { if (!annotatedAnnotation.isAnnotationPresent(Target.class)) { ReflectionLogger.LOG.missingTarget(annotatedAnnotation); } else if (!Arrays2.unorderedEquals(annotatedAnnotation.getAnnotation(Target.class).value(), METHOD, FIELD, TYPE)) { ReflectionLogger.LOG.missingTargetMethodFieldType(annotatedAnnotation); } } }
/** * Initializes the type */ protected void initType(EnhancedAnnotation<T> annotatedAnnotation) { if (!Annotation.class.isAssignableFrom(getRawType())) { throw MetadataLogger.LOG.metaAnnotationOnWrongType(getMetaAnnotationTypes(), getRawType()); } }
@Override protected void init(EnhancedAnnotation<T> annotatedAnnotation) { super.init(annotatedAnnotation); if (valid) { initAlternative(annotatedAnnotation); initDefaultScopeType(annotatedAnnotation); initBeanNameDefaulted(annotatedAnnotation); initInterceptorBindings(annotatedAnnotation); initInheritedStereotypes(annotatedAnnotation); checkBindings(annotatedAnnotation); this.metaAnnotations = annotatedAnnotation.getAnnotations(); } }
@Override protected void init(EnhancedAnnotation<T> annotatedAnnotation) { initNonBindingMembers(annotatedAnnotation); super.init(annotatedAnnotation); }
@Override protected void check(EnhancedAnnotation<T> annotatedAnnotation) { super.check(annotatedAnnotation); if (isValid()) { if (!annotatedAnnotation.isAnnotationPresent(Target.class)) { ReflectionLogger.LOG.missingTarget(annotatedAnnotation); } else if (!Arrays2.unorderedEquals(annotatedAnnotation.getAnnotation(Target.class).value(), METHOD, FIELD, TYPE)) { ReflectionLogger.LOG.missingTargetMethodFieldType(annotatedAnnotation); } } }
/** * Validates the data for correct annotation */ protected void initValid(EnhancedAnnotation<T> annotatedAnnotation) { this.valid = false; for (Class<? extends Annotation> annotationType : getMetaAnnotationTypes()) { if (annotatedAnnotation.isAnnotationPresent(annotationType)) { this.valid = true; } } }
/** * Gets a string representation of the annotation model * * @return The string representation */ @Override public String toString() { return (isValid() ? "Valid" : "Invalid") + " annotation model for " + getRawType(); }
/** * Initializes the type */ protected void initType(EnhancedAnnotation<T> annotatedAnnotation) { if (!Annotation.class.isAssignableFrom(getRawType())) { throw MetadataLogger.LOG.metaAnnotationOnWrongType(getMetaAnnotationTypes(), getRawType()); } }
@Override protected void init(EnhancedAnnotation<T> annotatedAnnotation) { super.init(annotatedAnnotation); if (valid) { initAlternative(annotatedAnnotation); initDefaultScopeType(annotatedAnnotation); initBeanNameDefaulted(annotatedAnnotation); initInterceptorBindings(annotatedAnnotation); initInheritedStereotypes(annotatedAnnotation); checkBindings(annotatedAnnotation); this.metaAnnotations = annotatedAnnotation.getAnnotations(); } }