org.sakaiproject.metaobj.utils.mvc.impl.beans
Class AddableSessionFactoryBean

java.lang.Object
  extended byorg.springframework.orm.hibernate.LocalSessionFactoryBean
      extended byorg.sakaiproject.metaobj.utils.mvc.impl.beans.AddableSessionFactoryBean
All Implemented Interfaces:
ApplicationContextAware, DisposableBean, FactoryBean, InitializingBean

public class AddableSessionFactoryBean
extends LocalSessionFactoryBean
implements ApplicationContextAware


Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
AddableSessionFactoryBean()
           
 
Method Summary
protected  void postProcessConfiguration(net.sf.hibernate.cfg.Configuration config)
          To be implemented by subclasses that want to to perform custom post-processing of the Configuration object after this FactoryBean performed its default initialization.
 void setApplicationContext(ApplicationContext applicationContext)
          Set the ApplicationContext that this object runs in.
 
Methods inherited from class org.springframework.orm.hibernate.LocalSessionFactoryBean
afterPropertiesSet, createDatabaseSchema, destroy, dropDatabaseSchema, executeSchemaScript, getConfigTimeDataSource, getConfigTimeLobHandler, getConfigTimeTransactionManager, getConfiguration, getObject, getObjectType, isSingleton, newConfiguration, newSessionFactory, setConfigLocation, setDataSource, setEntityInterceptor, setHibernateProperties, setJtaTransactionManager, setLobHandler, setMappingDirectoryLocations, setMappingJarLocations, setMappingLocations, setMappingResources, setNamingStrategy, setSchemaUpdate, setUseTransactionAwareDataSource, updateDatabaseSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final transient org.apache.commons.logging.Log logger
Constructor Detail

AddableSessionFactoryBean

public AddableSessionFactoryBean()
Method Detail

postProcessConfiguration

protected void postProcessConfiguration(net.sf.hibernate.cfg.Configuration config)
                                 throws net.sf.hibernate.HibernateException
To be implemented by subclasses that want to to perform custom post-processing of the Configuration object after this FactoryBean performed its default initialization.

Parameters:
config - the current Configuration object
Throws:
net.sf.hibernate.HibernateException - in case of Hibernate initialization errors

setApplicationContext

public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
Set the ApplicationContext that this object runs in. Normally this call will be used to initialize the object.

Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked after ResourceLoaderAware's setResourceLoader.

Specified by:
setApplicationContext in interface ApplicationContextAware
Parameters:
applicationContext - ApplicationContext object to be used by this object
Throws:
ApplicationContextException - in case of applicationContext initialization errors
BeansException - if thrown by application applicationContext methods
See Also:
BeanInitializationException