Java Code Examples for org.apache.shiro.subject.Subject#associateWith()
The following examples show how to use
org.apache.shiro.subject.Subject#associateWith() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NexusExecutorService.java From nexus-public with Eclipse Public License 1.0 | 4 votes |
@Override protected Runnable associateWithSubject(Runnable r) { Subject subject = getSubject(); return subject.associateWith(new MDCAwareRunnable(r)); }
Example 2
Source File: NexusExecutorService.java From nexus-public with Eclipse Public License 1.0 | 4 votes |
@Override protected <T> Callable<T> associateWithSubject(Callable<T> task) { Subject subject = getSubject(); return subject.associateWith(new MDCAwareCallable<>(task)); }