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

Method getThread

java/org/apache/naming/ContextBindings.java:174–180  ·  view source on GitHub ↗

Retrieves the naming context bound to the current thread. @return The naming context bound to the current thread. @throws NamingException If no naming context is bound to the current thread

()

Source from the content-addressed store, hash-verified

172 * @throws NamingException If no naming context is bound to the current thread
173 */
174 public static Context getThread() throws NamingException {
175 Context context = threadBindings.get(Thread.currentThread());
176 if (context == null) {
177 throw new NamingException(sm.getString("contextBindings.noContextBoundToThread"));
178 }
179 return context;
180 }
181
182
183 /**

Callers 1

getBoundContextMethod · 0.95

Calls 2

getMethod · 0.65
getStringMethod · 0.65

Tested by

no test coverage detected