Fix typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1432427 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
Apache Commons Logging
|
||||
Copyright 2003-2007 The Apache Software Foundation
|
||||
Copyright 2003-2013 The Apache Software Foundation
|
||||
|
||||
This product includes software developed by
|
||||
The Apache Software Foundation (http://www.apache.org/).
|
||||
|
||||
@@ -49,7 +49,7 @@ to allow users to use the package standalone.
|
||||
</p>
|
||||
|
||||
<p>commons-logging was heavily influenced by Avalon's Logkit and Log4J. The commons-logging
|
||||
abstraction is meant to minimixe the differences between the two, and to allow a
|
||||
abstraction is meant to minimize the differences between the two, and to allow a
|
||||
developer to not tie himself to a particular logging implementation.
|
||||
</p>
|
||||
|
||||
@@ -64,7 +64,7 @@ The package does :
|
||||
<li>Provide support for <a href="http://sourceforge.net/projects/lumberjack/">
|
||||
LumberJack</a> logger</li>
|
||||
<li>Provide pluggable support for other logging APIs</li>
|
||||
<li>Privide a simple System.out logger</li>
|
||||
<li>Provide a simple System.out logger</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ package org.apache.commons.logging;
|
||||
* </ol>
|
||||
* The mapping of these log levels to the concepts used by the underlying
|
||||
* logging system is implementation dependent.
|
||||
* The implemention should ensure, though, that this ordering behaves
|
||||
* The implementation should ensure, though, that this ordering behaves
|
||||
* as expected.</p>
|
||||
*
|
||||
* <p>Performance is often a logging concern.
|
||||
|
||||
@@ -310,7 +310,7 @@ public abstract class LogFactory {
|
||||
protected static Hashtable factories = null;
|
||||
|
||||
/**
|
||||
* Prevously constructed <code>LogFactory</code> instance as in the
|
||||
* Previously constructed <code>LogFactory</code> instance as in the
|
||||
* <code>factories</code> map, but for the case where
|
||||
* <code>getClassLoader</code> returns <code>null</code>.
|
||||
* This can happen when:
|
||||
@@ -411,7 +411,7 @@ public abstract class LogFactory {
|
||||
* properties defined in this file will be set as configuration attributes
|
||||
* on the corresponding <code>LogFactory</code> instance.</p>
|
||||
*
|
||||
* <p><em>NOTE</em> - In a multithreaded environment it is possible
|
||||
* <p><em>NOTE</em> - In a multi-threaded environment it is possible
|
||||
* that two different instances will be returned for the same
|
||||
* classloader environment.
|
||||
* </p>
|
||||
@@ -464,7 +464,7 @@ public abstract class LogFactory {
|
||||
String useTCCLStr = props.getProperty(TCCL_KEY);
|
||||
if (useTCCLStr != null) {
|
||||
// The Boolean.valueOf(useTCCLStr).booleanValue() formulation
|
||||
// is required for Java 1.2 compatability.
|
||||
// is required for Java 1.2 compatibility.
|
||||
if (Boolean.valueOf(useTCCLStr).booleanValue() == false) {
|
||||
// Don't use current context classloader when locating any
|
||||
// LogFactory or Log classes, just use the class that loaded
|
||||
|
||||
@@ -43,7 +43,7 @@ import org.apache.commons.logging.LogFactory;
|
||||
* <p>
|
||||
* To use this class, configure the webapp deployment descriptor to call
|
||||
* this class on webapp undeploy; the contextDestroyed method will tell
|
||||
* every accessable LogFactory class that the entry in its map for the
|
||||
* every accessible LogFactory class that the entry in its map for the
|
||||
* current webapp's context classloader should be cleared.
|
||||
*
|
||||
* @since 1.1
|
||||
@@ -96,8 +96,8 @@ public class ServletContextCleaner implements ServletContextListener {
|
||||
// clear any problem references.
|
||||
ClassLoader loader = tccl;
|
||||
while (loader != null) {
|
||||
// Load via the current loader. Note that if the class is not accessable
|
||||
// via this loader, but is accessable via some ancestor then that class
|
||||
// Load via the current loader. Note that if the class is not accessible
|
||||
// via this loader, but is accessible via some ancestor then that class
|
||||
// will be returned.
|
||||
try {
|
||||
Class logFactoryClass = loader.loadClass("org.apache.commons.logging.LogFactory");
|
||||
@@ -113,7 +113,7 @@ public class ServletContextCleaner implements ServletContextListener {
|
||||
System.err.println("LogFactory instance found which does not support release method!");
|
||||
loader = null;
|
||||
} catch(IllegalAccessException ex) {
|
||||
// This is not expected; every ancestor class should be accessable
|
||||
// This is not expected; every ancestor class should be accessible
|
||||
System.err.println("LogFactory instance found which is not accessable!");
|
||||
loader = null;
|
||||
} catch(InvocationTargetException ex) {
|
||||
|
||||
@@ -33,7 +33,7 @@ import java.util.Set;
|
||||
* to hold its keys thus allowing them to be reclaimed by the garbage collector.
|
||||
* The associated values are retained using strong references.</p>
|
||||
*
|
||||
* <p>This class follows the symantics of <code>Hashtable</code> as closely as
|
||||
* <p>This class follows the semantics of <code>Hashtable</code> as closely as
|
||||
* possible. It therefore does not accept null values or keys.</p>
|
||||
*
|
||||
* <p><strong>Note:</strong>
|
||||
@@ -45,7 +45,7 @@ import java.util.Set;
|
||||
* </p>
|
||||
* <p>
|
||||
* <strong>Usage:</strong> typical use case is as a drop-in replacement
|
||||
* for the <code>Hashtable</code> used in <code>LogFactory</code> for J2EE enviroments
|
||||
* for the <code>Hashtable</code> used in <code>LogFactory</code> for J2EE environments
|
||||
* running 1.3+ JVMs. Use of this class <i>in most cases</i> (see below) will
|
||||
* allow classloaders to be collected by the garbage collector without the need
|
||||
* to call {@link org.apache.commons.logging.LogFactory#release(ClassLoader) LogFactory.release(ClassLoader)}.
|
||||
@@ -53,7 +53,7 @@ import java.util.Set;
|
||||
*
|
||||
* <p><code>org.apache.commons.logging.LogFactory</code> checks whether this class
|
||||
* can be supported by the current JVM, and if so then uses it to store
|
||||
* references to the <code>LogFactory</code> implementationd it loads
|
||||
* references to the <code>LogFactory</code> implementation it loads
|
||||
* (rather than using a standard Hashtable instance).
|
||||
* Having this class used instead of <code>Hashtable</code> solves
|
||||
* certain issues related to dynamic reloading of applications in J2EE-style
|
||||
@@ -225,7 +225,7 @@ public final class WeakHashtable extends Hashtable {
|
||||
*@see Hashtable
|
||||
*/
|
||||
public Object put(Object key, Object value) {
|
||||
// check for nulls, ensuring symantics match superclass
|
||||
// check for nulls, ensuring semantics match superclass
|
||||
if (key == null) {
|
||||
throw new NullPointerException("Null keys are not allowed");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user