Tips
This section contains some tips and tricks that you might find useful to improve performances or to cover some corner use cases.
@SuppressFactusWarnings
Similar to java.lang.SuppressWarnings
, you can use this annotation to suppress warnings. You could notice these when factus encounters a class violating good practices (for instance when scanning your projection) the first time.
The annotation can be scoped to a type, method or field declaration.
It requires a value, which specifies the type of warning(s) to suppress. At the time of writing (Factcast version 0.5.2), the allowed values are:
SuppressFactusWarnings.Warning.ALL
suppresses all Factus related warningsSuppressFactusWarnings.Warning.PUBLIC_HANDLER_METHOD
suppresses “Handler methods should not be public” type of warning, caused by projection handler methods having a public scope
Last modified
July 24, 2023
: - fixing typos - formatting tables (42195b792)