| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.services.persistence.jpa.dao.JpaExtentFetcherInjectorBeanPostProcessor
public class JpaExtentFetcherInjectorBeanPostProcessor
Inject the ExtentFetcher in GenericDaos.
 It gets the extentFetcher from the spring context
 by using the default name EXTENT_FETCHER_BEAN_DEFAULT_NAME.
| Field Summary | |
|---|---|
static String | 
EXTENT_FETCHER_BEAN_DEFAULT_NAME
The default name for the property of the session factory.  | 
protected  ExtentFetcher | 
extentFetcher
Caches the 'extentFetcher' bean from the application context.  | 
| Fields inherited from interface org.springframework.core.Ordered | 
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE | 
| Constructor Summary | |
|---|---|
JpaExtentFetcherInjectorBeanPostProcessor()
 | 
|
| Method Summary | |
|---|---|
 ExtentFetcher | 
getExtentFetcher()
Gets the session factory (from spring context if needed).  | 
 int | 
getOrder()
 | 
protected  void | 
initDao(GenericJpaDao<?,?> dao)
Try to inject the extentFetcher into the given dao.  | 
 Object | 
postProcessAfterInitialization(Object bean,
                               String beanName)
 | 
 Object | 
postProcessBeforeInitialization(Object bean,
                                String beanName)
Initiates the real work.  | 
 void | 
setApplicationContext(ApplicationContext applicationContext)
 | 
 void | 
setExtentFetcher(ExtentFetcher extentFetcher)
If you do not set the extent fetcher explicitly, it will be obtained from the application's context.  | 
 void | 
setOrder(int order)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String EXTENT_FETCHER_BEAN_DEFAULT_NAME
protected ExtentFetcher extentFetcher
| Constructor Detail | 
|---|
public JpaExtentFetcherInjectorBeanPostProcessor()
| Method Detail | 
|---|
public Object postProcessBeforeInitialization(Object bean,
                                              String beanName)
                                       throws BeansException
postProcessBeforeInitialization in interface BeanPostProcessorbean - the bean to postprocessbeanName - the name of the bean
BeansException
public Object postProcessAfterInitialization(Object bean,
                                             String beanName)
                                      throws BeansException
postProcessAfterInitialization in interface BeanPostProcessorBeansExceptionprotected void initDao(GenericJpaDao<?,?> dao)
dao - the dao to inject the extentFetcherpublic ExtentFetcher getExtentFetcher()
public void setExtentFetcher(ExtentFetcher extentFetcher)
extentFetcher - the fetcher to usepublic void setOrder(int order)
public int getOrder()
getOrder in interface Ordered
public void setApplicationContext(ApplicationContext applicationContext)
                           throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||