|
From: <jue...@we...> - 2004-07-17 16:39:50
|
In our current 1.1 codebase, we have an inconsistency regarding the use = of "advice" and "interceptor" in bean property names: AdvisedSupport has = a deprecated "addInterceptor" method now (without hinting at the = preferred method in javadoc, BTW), because of the preferred "addAdvice" = method. =20 While Advice is more general (being a super interface of Interceptor), a = number of other properties use "interceptor" in the name while accepting = Object, for example TransactionProxyFactoryBean's "preInterceptors" and = "postInterceptors", and also ProxyFactoryBean's "interceptorNames". =20 We need to make this consistent. We could either keep the "interceptor" = property names, allowing all kinds of Advices there: This would mean = that AdvisedSupport's "addInterceptor" should not be deprecated. Or we = could use "advice" in all those names: That would mean renaming = (respectively deprecating) quite popular properties. =20 When renaming bean properties, we need to consider that driving those = properties via XML bean definitions will not show any deprecation = warnings, just programmatic usage will. Consequently, many people will = not notice such deprecations, first discovering them when we remove the = deprecated bean properties... =20 Thoughts? Suggestions? =20 Juergen |
|
From: Dmitriy K. <dko...@ru...> - 2004-07-17 20:27:41
|
Juergen, I like consistency too. I would prefer "advice" names as it's a general term and "interceptor" is one possible implementation strategy. Regards, Dmitriy. jürgen höller [werk3AT] wrote: >In our current 1.1 codebase, we have an inconsistency regarding the use of "advice" and "interceptor" in bean property names: AdvisedSupport has a deprecated "addInterceptor" method now (without hinting at the preferred method in javadoc, BTW), because of the preferred "addAdvice" method. > >While Advice is more general (being a super interface of Interceptor), a number of other properties use "interceptor" in the name while accepting Object, for example TransactionProxyFactoryBean's "preInterceptors" and "postInterceptors", and also ProxyFactoryBean's "interceptorNames". > >We need to make this consistent. We could either keep the "interceptor" property names, allowing all kinds of Advices there: This would mean that AdvisedSupport's "addInterceptor" should not be deprecated. Or we could use "advice" in all those names: That would mean renaming (respectively deprecating) quite popular properties. > >When renaming bean properties, we need to consider that driving those properties via XML bean definitions will not show any deprecation warnings, just programmatic usage will. Consequently, many people will not notice such deprecations, first discovering them when we remove the deprecated bean properties... > >Thoughts? Suggestions? > >Juergen > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_idG21&alloc_id040&op=click >_______________________________________________ >Springframework-developer mailing list >Spr...@li... >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |
|
From: Colin S. <col...@ex...> - 2004-07-18 12:05:47
|
I'd rather have the use of the word advice if it takes advice. If it says interceptor, people are going to think it takes just an interceptor. Maybe we could handle the deprecation in two stages though. For 1.1 the old methods are deprecated. For 1.2 the old methods are deprecated, and also log a warning in the setter. Hopefully people look in their logs... For 1.3 they actually go away. Colin jürgen höller [werk3AT] wrote: >In our current 1.1 codebase, we have an inconsistency regarding the use of "advice" and "interceptor" in bean property names: AdvisedSupport has a deprecated "addInterceptor" method now (without hinting at the preferred method in javadoc, BTW), because of the preferred "addAdvice" method. > >While Advice is more general (being a super interface of Interceptor), a number of other properties use "interceptor" in the name while accepting Object, for example TransactionProxyFactoryBean's "preInterceptors" and "postInterceptors", and also ProxyFactoryBean's "interceptorNames". > >We need to make this consistent. We could either keep the "interceptor" property names, allowing all kinds of Advices there: This would mean that AdvisedSupport's "addInterceptor" should not be deprecated. Or we could use "advice" in all those names: That would mean renaming (respectively deprecating) quite popular properties. > >When renaming bean properties, we need to consider that driving those properties via XML bean definitions will not show any deprecation warnings, just programmatic usage will. Consequently, many people will not notice such deprecations, first discovering them when we remove the deprecated bean properties... > >Thoughts? Suggestions? > >Juergen > > |