Skip to content

Commit 7835add

Browse files
committed
added thread-safe TODO
1 parent dd72e05 commit 7835add

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pact-spring-data-rest-provider/src/test/java/com/example/framework/DatabaseStateHolder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
/**
44
* Holds the current database state.
5+
* <p/>
6+
* TODO: replace the static state variable with a thread-safe alternative. Potentially use a special HTTP header
7+
* that is intercepted by a Bean defined in {@link PactDatabaseStatesAutoConfiguration} and sets the database
8+
* state in a {@link ThreadLocal} variable.
59
*/
610
public class DatabaseStateHolder {
711

0 commit comments

Comments
 (0)