Class FtSupport

java.lang.Object
io.helidon.faulttolerance.FtSupport

public final class FtSupport extends Object
Abstract types for classes that are (usually) code generated.

The classes implement the Interception.Interceptor.proceed(io.helidon.service.registry.InterceptionContext, io.helidon.service.registry.Interception.Interceptor.Chain, Object...) with the appropriate behavior of the FT handler, and have an abstract method to get the configured instance of the handler.

When generated, the generated code provides the instance either from ServiceRegistry, or it creates a new instance, with configuration taken from annotations, and maybe augmented by a Config.

If you want to implement extend one of these classes, you must add a service annotation (i.e. Service.Singleton), and the instance must be named with the signature of the element you want to intercept (the element must already support interception, such as when annotated with an Interception.Intercepted meta-annotation).

Signature is the fully qualified class name + . + methodName (or field name) + ( + list of method/constructor fully qualified parameter types separated by a , + ), such as com.example.MyType.myMethod(java.lang.String,java.lang.String). Fields do not have the part with parameters, constructor follows method format, where name is <init>.