diff --git a/spring-context/src/main/java/org/springframework/context/support/SimpleThreadScope.java b/spring-context/src/main/java/org/springframework/context/support/SimpleThreadScope.java index 960cc52c5d..6667a58615 100644 --- a/spring-context/src/main/java/org/springframework/context/support/SimpleThreadScope.java +++ b/spring-context/src/main/java/org/springframework/context/support/SimpleThreadScope.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,15 +26,19 @@ import org.springframework.beans.factory.ObjectFactory; import org.springframework.beans.factory.config.Scope; import org.springframework.core.NamedThreadLocal; + /** * Thread-backed {@link Scope} implementation. * - *

Note that the {@code SimpleThreadScope} does not clean up any objects associated - * with it. As such, it's typically preferable to use the {@link org.springframework.web.context.request.RequestScope} + *

Note that the {@code SimpleThreadScope} does not clean + * up any objects associated with it. As such, it's typically preferable to + * use the {@link org.springframework.web.context.request.RequestScope RequestScope} * in Web environments. * - *

For a implementation of a thread-based {@code Scope} with support for destruction callbacks, refer to this module. + *

For an implementation of a thread-based {@code Scope} with support for + * destruction callbacks, refer to the Spring + * by Example Custom Thread Scope Module. * *

Thanks to Eugene Kuleshov for submitting the original prototype for a thread scope! *