Interface Config
- All Known Subinterfaces:
ConfigDeclarativeOnly
public interface Config
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Annotation> Returns the type of the annotation that thisConfigwraps.org.eclipse.microprofile.faulttolerance.exceptions.FaultToleranceDefinitionExceptionorg.eclipse.microprofile.faulttolerance.exceptions.FaultToleranceDefinitionExceptionReturns a newFaultToleranceDefinitionExceptionfor this annotation type and itsmemberwith givenreason.voidEnsures this configuration is loaded.voidvalidate()Defines local validation, that is, validation of the single annotation the config interface represents.
-
Method Details
-
validate
void validate()Defines local validation, that is, validation of the single annotation the config interface represents. Global validation (such as cross-checking configuration across multiple annotations) must be done elsewhere.Must be implemented (as a
defaultmethod) in the config interface. -
annotationType
Class<? extends Annotation> annotationType()Returns the type of the annotation that thisConfigwraps. -
materialize
void materialize()Ensures this configuration is loaded. Subsequent method invocations on this instance are guaranteed to not touch MP Config. -
fail
org.eclipse.microprofile.faulttolerance.exceptions.FaultToleranceDefinitionException fail(String reason) -
fail
org.eclipse.microprofile.faulttolerance.exceptions.FaultToleranceDefinitionException fail(String member, String reason) Returns a newFaultToleranceDefinitionExceptionfor this annotation type and itsmemberwith givenreason.
-