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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to