Define some Byteman rules to check what APIs are used at runtime

Description

There exist some expensive operations that are supposed to be invoked only at boot time of a session factory.
That is when the session factory is being created.
Those rules should not be used at runtime of a session factory.
That is when the session factory has been created.

We could consider an expensive operation the parsing of a regular expression. But that should be analyzed during this issue.

The issue consists in defining some Byteman rules to check if those APIs are used at runtime.
In that case, we need to throw an Exception.

These rules will be activated only during the execution of the tests.
So that if one of these APIs is used at runtime, tests will fail and the project will continue to work.

Environment

None

Status

Assignee

Fabio Massimo Ercoli

Reporter

Fabio Massimo Ercoli

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.4.4

Priority

Minor