You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by sol myr <so...@yahoo.com> on 2008/05/23 20:57:36 UTC

Please consider annotation support for ScopeInterceptor

Hi,
A kind request / question for the Struts2 development team:

Would you consider *annotation* based injection of session/application attributes?
I'm aiming at something like Tom Schneider's "scope plugin" (from the struts2 plugin repository):
http://cwiki.apache.org/S2PLUGINS/scope-plugin.html

The above plugin has a nice approach IMHO, but is not considered "Struts2 mainstream" (i.e. is not distributed with struts2 by default, and could probably also benefit from some enhancements).
The "mainstream" org.apache.struts2.interceptor.ScopeInterceptor is great, but unfortunately relies only on XML configuration - wouldn't you agree that annotations can be cleaner and easier to maintain (as already proven with struts2 validators...)

Thanks very much :)

       

Re: Please consider annotation support for ScopeInterceptor

Posted by sol myr <so...@yahoo.com>.
Thanks a bunch for looking into this :)

No, Tom Schneider's ScopeInterceptor doesn't extend the standard  org.apache.struts2.interceptor.ScopeInterceptor.

That's kind of my point: IMHO, Mr. Schneider's interceptor has beautiful annotations design, but might benefit from some refinements that are present in the standard Struts2 ScopeInterceptor. 
For example, when I tried out Mr. Schneider's  interceptor, I had to fix it to use PreResultListener (which it doesn't do by default, thus causing strange behavior in the result JSP).

Thanks again.


Musachy Barroso <mu...@gmail.com> wrote: Does it extend the scope interceptor or is it a brand new one? (for
some reason google "browse" is timing out)

musachy

On Fri, May 23, 2008 at 2:57 PM, sol myr  wrote:
> Hi,
> A kind request / question for the Struts2 development team:
>
> Would you consider *annotation* based injection of session/application attributes?
> I'm aiming at something like Tom Schneider's "scope plugin" (from the struts2 plugin repository):
> http://cwiki.apache.org/S2PLUGINS/scope-plugin.html
>
> The above plugin has a nice approach IMHO, but is not considered "Struts2 mainstream" (i.e. is not distributed with struts2 by default, and could probably also benefit from some enhancements).
> The "mainstream" org.apache.struts2.interceptor.ScopeInterceptor is great, but unfortunately relies only on XML configuration - wouldn't you agree that annotations can be cleaner and easier to maintain (as already proven with struts2 validators...)
>
> Thanks very much :)
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org



       

Re: Please consider annotation support for ScopeInterceptor

Posted by Musachy Barroso <mu...@gmail.com>.
Does it extend the scope interceptor or is it a brand new one? (for
some reason google "browse" is timing out)

musachy

On Fri, May 23, 2008 at 2:57 PM, sol myr <so...@yahoo.com> wrote:
> Hi,
> A kind request / question for the Struts2 development team:
>
> Would you consider *annotation* based injection of session/application attributes?
> I'm aiming at something like Tom Schneider's "scope plugin" (from the struts2 plugin repository):
> http://cwiki.apache.org/S2PLUGINS/scope-plugin.html
>
> The above plugin has a nice approach IMHO, but is not considered "Struts2 mainstream" (i.e. is not distributed with struts2 by default, and could probably also benefit from some enhancements).
> The "mainstream" org.apache.struts2.interceptor.ScopeInterceptor is great, but unfortunately relies only on XML configuration - wouldn't you agree that annotations can be cleaner and easier to maintain (as already proven with struts2 validators...)
>
> Thanks very much :)
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org