Interface TransactionAnnotationParser

    • Method Detail

      • isCandidateClass

        default boolean isCandidateClass​(Class<?> targetClass)
        Determine whether the given class is a candidate for transaction attributes in the annotation format of this TransactionAnnotationParser.

        If this method returns false, the methods on the given class will not get traversed for #parseTransactionAnnotation introspection. Returning false is therefore an optimization for non-affected classes, whereas true simply means that the class needs to get fully introspected for each method on the given class individually.

        Parameters:
        targetClass - the class to introspect
        Returns:
        false if the class is known to have no transaction annotations at class or method level; true otherwise. The default implementation returns true, leading to regular introspection.
        Since:
        5.2