Update of /cvsroot/springframework/spring/src/org/springframework/dao/support
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32598/src/org/springframework/dao/support
Modified Files:
DaoSupport.java
Log Message:
initialize specialized template in overridden "checkDaoConfig()" method
Index: DaoSupport.java
===================================================================
RCS file: /cvsroot/springframework/spring/src/org/springframework/dao/support/DaoSupport.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** DaoSupport.java 1 Jun 2005 16:10:53 -0000 1.1
--- DaoSupport.java 20 Apr 2006 13:44:15 -0000 1.2
***************
*** 1,4 ****
/*
! * Copyright 2002-2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
--- 1,4 ----
/*
! * Copyright 2002-2006 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
***************
*** 39,42 ****
--- 39,43 ----
protected final Log logger = LogFactory.getLog(getClass());
+
public final void afterPropertiesSet() throws IllegalArgumentException, BeanInitializationException {
// Let abstract subclasses check their configuration.
***************
*** 48,52 ****
}
catch (Exception ex) {
! throw new BeanInitializationException("Initialization of DAO failed: " + ex.getMessage(), ex);
}
}
--- 49,53 ----
}
catch (Exception ex) {
! throw new BeanInitializationException("Initialization of DAO failed", ex);
}
}
***************
*** 54,59 ****
/**
* Abstract subclasses must override this to check their configuration.
! * <p>Implementors should be marked as <code>final</code>, to make it clear that
! * concrete subclasses are not supposed to override this template method themselves.
* @throws IllegalArgumentException in case of illegal configuration
*/
--- 55,60 ----
/**
* Abstract subclasses must override this to check their configuration.
! * <p>Implementors should be marked as <code>final</code if concrete subclasses
! * are not supposed to override this template method themselves.
* @throws IllegalArgumentException in case of illegal configuration
*/
|