Class FaultToleranceMethodSearch

java.lang.Object
io.quarkus.smallrye.faulttolerance.deployment.FaultToleranceMethodSearch

final class FaultToleranceMethodSearch extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    FaultToleranceMethodSearch(org.jboss.jandex.IndexView index)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) org.jboss.jandex.MethodInfo
    findBeforeRetryMethod(org.jboss.jandex.ClassInfo beanClass, org.jboss.jandex.ClassInfo declaringClass, String name)
    Finds a before retry method for given guarded method.
    (package private) org.jboss.jandex.MethodInfo
    findFallbackMethod(org.jboss.jandex.ClassInfo beanClass, org.jboss.jandex.ClassInfo declaringClass, String name, org.jboss.jandex.Type[] parameterTypes, org.jboss.jandex.Type returnType)
    Finds a fallback method for given guarded method.
    (package private) Set<org.jboss.jandex.MethodInfo>
    findFallbackMethodsWithExceptionParameter(org.jboss.jandex.ClassInfo beanClass, org.jboss.jandex.ClassInfo declaringClass, String name, org.jboss.jandex.Type[] parameterTypes, org.jboss.jandex.Type returnType)
    Finds a set of fallback methods with exception parameter for given guarded method.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FaultToleranceMethodSearch

      FaultToleranceMethodSearch(org.jboss.jandex.IndexView index)
  • Method Details

    • findFallbackMethod

      org.jboss.jandex.MethodInfo findFallbackMethod(org.jboss.jandex.ClassInfo beanClass, org.jboss.jandex.ClassInfo declaringClass, String name, org.jboss.jandex.Type[] parameterTypes, org.jboss.jandex.Type returnType)
      Finds a fallback method for given guarded method. If the guarded method is present on given beanClass and is actually declared by given declaringClass and has given parameterTypes and returnType, then a fallback method of given name, with parameter types and return type matching the parameter types and return type of the guarded method, is searched for on the beanClass and its superclasses and superinterfaces, according to the specification rules. Returns null if no matching fallback method exists.
      Parameters:
      beanClass - the class of the bean that has the guarded method
      declaringClass - the class that actually declares the guarded method (can be a supertype of bean class)
      name - name of the fallback method
      parameterTypes - parameter types of the guarded method
      returnType - return type of the guarded method
      Returns:
      the fallback method or null if none exists
    • findFallbackMethodsWithExceptionParameter

      Set<org.jboss.jandex.MethodInfo> findFallbackMethodsWithExceptionParameter(org.jboss.jandex.ClassInfo beanClass, org.jboss.jandex.ClassInfo declaringClass, String name, org.jboss.jandex.Type[] parameterTypes, org.jboss.jandex.Type returnType)
      Finds a set of fallback methods with exception parameter for given guarded method. If the guarded method is present on given beanClass and is actually declared by given declaringClass and has given parameterTypes and returnType, then fallback methods of given name, with parameter types and return type matching the parameter types and return type of the guarded method, and with one additional parameter assignable to Throwable at the end of parameter list, is searched for on the beanClass and its superclasses and superinterfaces, according to the specification rules. Returns an empty set if no matching fallback method exists.
      Parameters:
      beanClass - the class of the bean that has the guarded method
      declaringClass - the class that actually declares the guarded method (can be a supertype of bean class)
      name - name of the fallback method
      parameterTypes - parameter types of the guarded method
      returnType - return type of the guarded method
      Returns:
      the fallback method or an empty set if none exists
    • findBeforeRetryMethod

      org.jboss.jandex.MethodInfo findBeforeRetryMethod(org.jboss.jandex.ClassInfo beanClass, org.jboss.jandex.ClassInfo declaringClass, String name)
      Finds a before retry method for given guarded method. If the guarded method is present on given beanClass and is actually declared by given declaringClass, then a before retry method of given name, with no parameters and return type of void, is searched for on the beanClass and its superclasses and superinterfaces, according to the specification rules. Returns null if no matching before retry method exists.
      Parameters:
      beanClass - the class of the bean that has the guarded method
      declaringClass - the class that actually declares the guarded method (can be a supertype of bean class)
      name - name of the before retry method
      Returns:
      the before retry method or null if none exists