1 24 package org.riotfamily.riot.security.session; 25 26 import org.riotfamily.riot.security.auth.RiotUserDao; 27 import org.springframework.beans.BeansException; 28 import org.springframework.beans.factory.config.BeanPostProcessor; 29 30 34 public class RiotUserDaoProcessor implements BeanPostProcessor { 35 36 public Object postProcessBeforeInitialization(Object bean, String beanName) 37 throws BeansException { 38 39 return bean; 40 } 41 42 public Object postProcessAfterInitialization(Object bean, String beanName) 43 throws BeansException { 44 45 if (bean instanceof RiotUserDao) { 46 return new RiotUserDaoWrapper((RiotUserDao) bean); 47 } 48 return bean; 49 } 50 51 52 } 53 | Popular Tags |