Skip to content

Instantly share code, notes, and snippets.

@Kotlin-Native
Created July 10, 2015 09:18
Show Gist options
  • Select an option

  • Save Kotlin-Native/ca702ef2395d3f9c2b67 to your computer and use it in GitHub Desktop.

Select an option

Save Kotlin-Native/ca702ef2395d3f9c2b67 to your computer and use it in GitHub Desktop.
Map<String, Object> requestDataStore = new HashMap<String, Object>();
boundRequestContext.associate(requestDataStore);
boundRequestContext.activate();
useRequestScopeInHere();
try {
boundRequestContext.invalidate();
boundRequestContext.deactivate();
} finally {
boundRequestContext.dissociate(requestDataStore);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment