|
From: Alexandru P. <the...@ez...> - 2005-03-24 07:25:59
|
[quote Alexandru Popescu::on 3/22/2005 3:22 AM] > Hi! > > As I already stated yesterday I am a beginner with Spring :-). > I have passed this evening through the Hibernate support in Spring and one thing remained unclear to me: > on page 110 i read about configuring the ProxyFactoryBean for a ProductDaoImpl a > > <bean id="myProductDao" class="..."> > <property name="interceptorNames"> > <list> > <value>hibernateInterceptor</value> <!-- this seems oke with me --> > <value>myProductDaoTarget</value> <!-- this is strange --> > </list> > ... > > By reading the javadoc for setInterceptorNames(String[]) i found out: > [quote] > * Set the list of Advice/Advisor bean names. This must always be set > * to use this factory bean in a bean factory. > * <p>The referenced beans should be of type Interceptor, Advisor or Advice > * The last entry in the list can be the name of any bean in the factory. > * If it's neither an Advice nor an Advisor, a new SingletonTargetSource > * is added to wrap it. Such a target bean cannot be used if the target or targetSource > * property is set, in which case the interceptorNames array must contain > * only Advice/Advisor bean names. > [/quote] > > My question is: why the targetObject is not passed in as in TransactionProxyFactoryBean > (setTargetObject) or at least as setTargetObjectRefName(String). > > tia, > -- > :alex |.::the_mindstorm::.| > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Springframework-user mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-user > > Hi, Should this kind of mail be redirected to the dev ML? Sorry if I have posted on the wrong place. -- :alex |.::the_mindstorm::.| |