InterfaceRulesClass.TraceBeforeRule
ide.<ProgrammingLanguage>.InterfaceRulesClass.TraceBeforeRule = xxx
This parameter can be used to define statements for the rules module that should be executed before the first action in each rule:
Entry in an LFET.Project.ini-file:
ide.Java.InterfaceRulesClass.TraceBeforeRule = loggingFacade.traceBeforeRule(...);
Or also in several lines, as necessary, in an LFET.Project.yaml-file:
ide.Java:
Interface:
RulesClass:
Trace:
BeforeRule: |
// Relocation of logging tasks from interface in the rules module
loggingFacade.traceBeforeRule(...);
Further information:
-
Trace methods in the interface can be suppressed using Interface.TraceBeforeRule = false
-
Generation of instance variables can be triggered with InterfaceRulesClass.Vars, such as e.g. an instance of a LoggingFacade for trace methods