Created
February 11, 2015 17:48
-
-
Save maurociancio/0d3f5a082454479490b7 to your computer and use it in GitHub Desktop.
Revisions
-
maurociancio created this gist
Feb 11, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ import java.lang.reflect.* Thread thread = Thread.currentThread() Field threadLocalsField = Thread.class.getDeclaredField("threadLocals") threadLocalsField.setAccessible(true) Object threadLocalTable = threadLocalsField.get(thread) def values = threadLocalTable.table.grep().collect { it?.value }