On Thu, 06 Jan 2011 21:38:15 -0200, Josh Canfield <joshcanfi...@gmail.com>
wrote:
Perhaps you could build a CYASessionStateWorker that looks at
@SessionState annotated fields and pukes if the type is outside of
some package you specify. For instance, all of my @SessionState
objects generally go in a "state" package as a sibling to pages,
components etc.
This gave me an idea: we could create a very pedantic mode or separate
package that checks for things that are valid but not recommended (such as
using @SessionState with String fields or initializing component fields
with known mutable objects) and throws an exception if some offending code
is found. This could include Josh's idea of checking for @SessionState
fields which types are outside some configurable safe package
(.sessionstate?). A little bit like a FindBugs for Tapestry. What do you
think? :)
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org