Interface AnnotationResolver

All Known Implementing Classes:
ComponentBeanNameAnnotationResolver, ConfigurationBeanNameAnnotationResolver, InterfaceBeanNameAnnotationResolver, ServiceBeanNameAnnotationResolver

public interface AnnotationResolver
Represents an interface for resolving annotations on classes. Implementations of this interface define methods to determine support for handling specific classes and to resolve information related to those classes' annotations.

Example usage: An implementation of this interface might determine whether a certain annotation is supported on a given class and provide functionality to extract information from that annotation.

Since:
1.0
Author:
Blyzhnytsia Team
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    getSimpleName(Class<?> clazz)
     
    boolean
    isSupported(Class<?> clazz)
    Checks if the resolver supports handling annotations on the specified class.
    resolve(Class<?> clazz)
    Resolves information related to annotations on the specified class.
  • Method Details

    • isSupported

      boolean isSupported(Class<?> clazz)
      Checks if the resolver supports handling annotations on the specified class.
      Parameters:
      clazz - the class to check for support
      Returns:
      true if the resolver supports the class; false otherwise
    • resolve

      String resolve(Class<?> clazz)
      Resolves information related to annotations on the specified class.
      Parameters:
      clazz - the class for which to resolve annotation information
      Returns:
      a string representing resolved information from the annotations
    • getSimpleName

      default String getSimpleName(Class<?> clazz)