ThreadContext.bind

Convenience method that simplifies binding a Subject to the ThreadContext. <p/> <p>The method's existence is to help reduce casting in your own code and to simplify remembering of ThreadContext key names. The implementation is simple in that, if the Subject is not <tt>null</tt>, it binds it to the thread, i.e.: <p/> <pre> if (subject !is null) { put( SUBJECT_KEY, subject ); }</pre>

@param subject the Subject object to bind to the thread. If the argument is null, nothing will be done.

Meta