01: /*
02: * Created on Jan 9, 2006
03: */
04: package uk.org.ponder.rsf.hibernate3;
05:
06: import org.springframework.orm.hibernate3.LocalSessionFactoryBean;
07:
08: /** A utility class to obtain the parent Spring factory for the bean.
09: * This is principally used to get the Hibernate Configuration object -
10: * adopt a more portable scheme once the alternatives are clear.
11: * @author Antranig Basman (antranig@caret.cam.ac.uk)
12: *
13: */
14:
15: public class LocalSessionFactoryBeanHolder {
16: private LocalSessionFactoryBean lsfb;
17:
18: public void setHolder(LocalSessionFactoryBean lsfb) {
19: this .lsfb = lsfb;
20: }
21:
22: public LocalSessionFactoryBean getHolder() {
23: return lsfb;
24: }
25: }
|