Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 2452 invoked from network); 10 Nov 2004 23:00:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Nov 2004 23:00:32 -0000 Received: (qmail 81740 invoked by uid 500); 10 Nov 2004 23:00:14 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 81634 invoked by uid 500); 10 Nov 2004 23:00:13 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 81501 invoked by uid 500); 10 Nov 2004 23:00:12 -0000 Received: (qmail 81480 invoked by uid 99); 10 Nov 2004 23:00:12 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 10 Nov 2004 15:00:11 -0800 Received: (qmail 1811 invoked by uid 1289); 10 Nov 2004 23:00:10 -0000 Date: 10 Nov 2004 23:00:10 -0000 Message-ID: <20041110230010.1810.qmail@minotaur.apache.org> From: rdonkin@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/logging/src/test/org/apache/commons/logging AltHashtable.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N rdonkin 2004/11/10 15:00:10 Added: logging/src/test/org/apache/commons/logging AltHashtable.java Log: LogFactory's Hashtable implementation (used to store LogFactoryImpl by classloader) can now be subclassed. This will default to WeakHashtable when this is present on the classpath, Hashtable otherwise. The implementation class can be specified by a system property. Based on a contribution by Brian Stansberry. Revision Changes Path 1.1 jakarta-commons/logging/src/test/org/apache/commons/logging/AltHashtable.java Index: AltHashtable.java =================================================================== /* * Copyright 2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.logging; import java.util.Hashtable; public class AltHashtable extends Hashtable { public static Object lastKey; public static Object lastValue; public Object put(Object key, Object value) { lastKey = key; lastValue = value; return super.put(key, value); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org