hi
i use a spring interceptor
Part 1
Part 2 - config xmlCode:ApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"applicationContext.xml"}); UserFacade user = (UserFacade) context.getBean("interceptedService");
in UserValidationImpl, i have a variable named currentUserCode:<bean id="securityInterceptor" class="test.logic.UserValidationImpl"> <property name="userImpl" ref="odUserDao"/> </bean> <bean id="interceptedService" class="org.springframework.aop.framework.ProxyFactoryBean"> <property name="target"> <ref bean="odUserDao"/> </property> <property name="interceptorNames"> <list> <value>securityInterceptor</value> </list> </property> </bean>
in part 1, how can i affect a value to this variable ?
does i need to add something in the part 2 (xml config)?
thanks


Reply With Quote