ThreadContext.bind

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

@param securityManager the application's SecurityManager instance to bind to the thread. If the argument is null, nothing will be done.

  1. void bind(SecurityManager securityManager)
    class ThreadContext
  2. void bind(Subject subject)
  3. void bind(string name, Subject subject)

Meta