From commons-dev-return-57917-apmail-jakarta-commons-dev-archive=jakarta.apache.org@jakarta.apache.org Thu Sep 02 03:19:28 2004 Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 43160 invoked from network); 2 Sep 2004 03:19:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Sep 2004 03:19:28 -0000 Received: (qmail 28188 invoked by uid 500); 2 Sep 2004 03:19:03 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 28123 invoked by uid 500); 2 Sep 2004 03:19:02 -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 28086 invoked by uid 500); 2 Sep 2004 03:19:02 -0000 Received: (qmail 28070 invoked by uid 99); 2 Sep 2004 03:19:02 -0000 X-ASF-Spam-Status: No, hits=-2.8 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, 01 Sep 2004 20:19:02 -0700 Received: (qmail 43034 invoked by uid 1581); 2 Sep 2004 03:19:01 -0000 Date: 2 Sep 2004 03:19:01 -0000 Message-ID: <20040902031901.43033.qmail@minotaur.apache.org> From: dgraham@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/dbutils/src/java/org/apache/commons/dbutils BeanProcessor.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N dgraham 2004/09/01 20:19:01 Modified: dbutils/src/java/org/apache/commons/dbutils BeanProcessor.java Log: Made newInstance() protected so subclasses can provide custom behavior. Revision Changes Path 1.7 +5 -2 jakarta-commons/dbutils/src/java/org/apache/commons/dbutils/BeanProcessor.java Index: BeanProcessor.java =================================================================== RCS file: /home/cvs/jakarta-commons/dbutils/src/java/org/apache/commons/dbutils/BeanProcessor.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- BeanProcessor.java 2 Sep 2004 03:06:29 -0000 1.6 +++ BeanProcessor.java 2 Sep 2004 03:19:01 -0000 1.7 @@ -292,13 +292,16 @@ } /** - * Returns a new instance of the given Class. + * Factory method that returns a new instance of the given Class. This + * is called at the start of the bean creation process and may be + * overridden to provide custom behavior like returning a cached bean + * instance. * * @param c The Class to create an object from. * @return A newly created object of the Class. * @throws SQLException if creation failed. */ - private Object newInstance(Class c) throws SQLException { + protected Object newInstance(Class c) throws SQLException { try { return c.newInstance(); --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org