Browse Source

Fix grammar and update link in Javadoc for SimpleThreadScope

pull/458/head
Sam Brannen 11 years ago
parent
commit
de5b7a378b
  1. 14
      spring-context/src/main/java/org/springframework/context/support/SimpleThreadScope.java

14
spring-context/src/main/java/org/springframework/context/support/SimpleThreadScope.java

@ -1,5 +1,5 @@ @@ -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; @@ -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.
*
* <p><strong>Note</strong> that the {@code SimpleThreadScope} <em>does not clean up any objects</em> associated
* with it. As such, it's typically preferable to use the {@link org.springframework.web.context.request.RequestScope}
* <p><strong>Note</strong> that the {@code SimpleThreadScope} <em>does not clean
* up any objects</em> associated with it. As such, it's typically preferable to
* use the {@link org.springframework.web.context.request.RequestScope RequestScope}
* in Web environments.
*
* <p>For a implementation of a thread-based {@code Scope} with support for destruction callbacks, refer to <a
* href="http://www.springbyexample.org/twiki/bin/view/Example/CustomThreadScopeModule">this module</a>.
* <p>For an implementation of a thread-based {@code Scope} with support for
* destruction callbacks, refer to the <a
* href="http://www.springbyexample.org/examples/custom-thread-scope-module.html">Spring
* by Example Custom Thread Scope Module</a>.
*
* <p>Thanks to Eugene Kuleshov for submitting the original prototype for a thread scope!
*

Loading…
Cancel
Save