Example usage for org.springframework.core.convert TypeDescriptor hasAnnotation

List of usage examples for org.springframework.core.convert TypeDescriptor hasAnnotation

Introduction

In this page you can find the example usage for org.springframework.core.convert TypeDescriptor hasAnnotation.

Prototype

public boolean hasAnnotation(Class<? extends Annotation> annotationType) 

Source Link

Document

Determine if this type descriptor has the specified annotation.

Usage

From source file:ru.mystamps.web.controller.converter.LinkEntityDtoGenericConverter.java

private static boolean hasCategoryAnnotation(TypeDescriptor type) {
    return type.hasAnnotation(Category.class);
}

From source file:ru.mystamps.web.controller.converter.LinkEntityDtoGenericConverter.java

private static boolean hasCountryAnnotation(TypeDescriptor type) {
    return type.hasAnnotation(Country.class);
}