MCPcopy Create free account
hub / github.com/apache/tomcat / isThreadBound

Method isThreadBound

java/org/apache/naming/ContextBindings.java:200–202  ·  view source on GitHub ↗

Tests if current thread is bound to a naming context. @return true if the current thread is bound to a naming context, otherwise false

()

Source from the content-addressed store, hash-verified

198 * @return <code>true</code> if the current thread is bound to a naming context, otherwise <code>false</code>
199 */
200 public static boolean isThreadBound() {
201 return threadBindings.containsKey(Thread.currentThread());
202 }
203
204
205 /**

Callers 3

getBoundContextMethod · 0.95
getObjectInstanceMethod · 0.95
getInitialContextMethod · 0.95

Calls 1

containsKeyMethod · 0.45

Tested by

no test coverage detected