public abstract class DaoSupport
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean
Extended by Spring's specific DAO support classes, such as: JdbcDaoSupport, JdoDaoSupport, etc.
org.springframework.jdbc.core.support.JdbcDaoSupport| Modifier and Type | Field and Description |
|---|---|
protected Log |
logger
Logger available to subclasses
|
| Constructor and Description |
|---|
DaoSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected abstract void |
checkDaoConfig()
Abstract subclasses must override this to check their configuration.
|
protected void |
initDao()
Concrete subclasses can override this for custom initialization behavior.
|
protected final Log logger
public final void afterPropertiesSet()
throws java.lang.IllegalArgumentException,
org.springframework.beans.factory.BeanInitializationException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.IllegalArgumentExceptionorg.springframework.beans.factory.BeanInitializationExceptionprotected abstract void checkDaoConfig()
throws java.lang.IllegalArgumentException
Implementors should be marked as final if concrete subclasses
are not supposed to override this template method themselves.
java.lang.IllegalArgumentException - in case of illegal configurationprotected void initDao()
throws java.lang.Exception
java.lang.Exception - if DAO initialization fails
(will be rethrown as a BeanInitializationException)BeanInitializationException