/** * {@inheritDoc} */ public AnnotationList getDeclaredAnnotations() { return new AnnotationList.ForLoadedAnnotations(aPackage.getDeclaredAnnotations()); }
@Override public AnnotationList getDeclaredAnnotations() { return new AnnotationList.ForLoadedAnnotations(aPackage.getDeclaredAnnotations()); }
@Override public AnnotationList getDeclaredAnnotations() { return new AnnotationList.ForLoadedAnnotations(aPackage.getDeclaredAnnotations()); }
/** * Get a @JsonbVisibility annotation from a class or its package. * @param clazz Class to lookup annotation * @return Instantiated PropertyVisibilityStrategy if annotation is present */ public Optional<PropertyVisibilityStrategy> getPropertyVisibilityStrategy(Class<?> clazz) { JsonbVisibility visibilityAnnotation = findAnnotation(clazz.getDeclaredAnnotations(), JsonbVisibility.class); if ((visibilityAnnotation == null) && (clazz.getPackage() != null)) { visibilityAnnotation = findAnnotation(clazz.getPackage().getDeclaredAnnotations(), JsonbVisibility.class); } final Optional<JsonbVisibility> visibilityOptional = Optional.ofNullable(visibilityAnnotation); return visibilityOptional.map(jsonbVisibility -> ReflectionUtils.createNoArgConstructorInstance(jsonbVisibility.value())); }
@Override protected void parsePackageMappingAnnotations(Package pkg) { MappingTag tag; for (Annotation anno : pkg.getDeclaredAnnotations()) { tag = _tags.get(anno.annotationType()); if (tag == null) { handleUnknownPackageMappingAnnotation(pkg, anno); continue; } switch (tag) { case TABLE_GEN: parseTableGenerator(pkg, (TableGenerator) anno); break; default: throw new UnsupportedException(_loc.get("unsupported", pkg, anno.toString())); } } }
@Override protected void parsePackageMappingAnnotations(Package pkg) { MappingTag tag; for (Annotation anno : pkg.getDeclaredAnnotations()) { tag = _tags.get(anno.annotationType()); if (tag == null) { handleUnknownPackageMappingAnnotation(pkg, anno); continue; } switch (tag) { case TABLE_GEN: parseTableGenerator(pkg, (TableGenerator) anno); break; default: throw new UnsupportedException(_loc.get("unsupported", pkg, anno.toString())); } } }
@Override protected void parsePackageMappingAnnotations(Package pkg) { MappingTag tag; for (Annotation anno : pkg.getDeclaredAnnotations()) { tag = _tags.get(anno.annotationType()); if (tag == null) { handleUnknownPackageMappingAnnotation(pkg, anno); continue; } switch (tag) { case TABLE_GEN: parseTableGenerator(pkg, (TableGenerator) anno); break; default: throw new UnsupportedException(_loc.get("unsupported", pkg, anno.toString())); } } }
@Override protected void parsePackageMappingAnnotations(Package pkg) { MappingTag tag; for (Annotation anno : pkg.getDeclaredAnnotations()) { tag = _tags.get(anno.annotationType()); if (tag == null) { handleUnknownPackageMappingAnnotation(pkg, anno); continue; } switch (tag) { case TABLE_GEN: parseTableGenerator(pkg, (TableGenerator) anno); break; default: throw new UnsupportedException(_loc.get("unsupported", pkg, anno.toString())); } } }
for (Annotation anno : pkg.getDeclaredAnnotations()) { tag = _tags.get(anno.annotationType()); if (tag == null) {
for (Annotation anno : pkg.getDeclaredAnnotations()) { tag = _tags.get(anno.annotationType()); if (tag == null) {
for (Annotation anno : pkg.getDeclaredAnnotations()) { tag = _tags.get(anno.annotationType()); if (tag == null) {
for (Annotation anno : pkg.getDeclaredAnnotations()) { tag = _tags.get(anno.annotationType()); if (tag == null) {
for (Annotation anno : pkg.getDeclaredAnnotations()) { tag = _tags.get(anno.annotationType()); if (tag == null) {