SEC-367: Added clarification of immutability contract.
This commit is contained in:
parent
43dbe6c991
commit
b8d0722251
|
@ -39,6 +39,12 @@ import java.io.Serializable;
|
|||
* reference implementation (which you might like to extend).
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* Concrete implementations should be immutable (value object semantics,
|
||||
* like a String). This is because the <code>UserDetails</code> will be
|
||||
* stored in caches and as such multiple threads may use the same instance.
|
||||
* </p>
|
||||
*
|
||||
* @author Ben Alex
|
||||
* @version $Id$
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue