A Transit Bean is a lightweight request-scope bean that intercepts data write requests issued by components, and focuses or otherwise processes them before they reach the bean model. They are the generalisation of the concept of validators in architectures like Spring or JSF, in that being pure beans they may be wired with arbitrary getters and setters. See the use of the DateTransit bean in the Hibernate Cookbook for an example usage. Transit beans are a form of usage of the OTP pattern, and are typically defined in Spring using a BeanExploder.

As RSF matures, expect a good repertoire of these components to be developed and contributed - being pure beans[1], the advantage is that they can be reused in scenarios outside RSF, and even outside the web in general.


[#1] barring the issue of exception types, which should be resolved once PonderUtilCore becomes refactored.


You can post comments and questions on this page using the following blog. Please set your name using UserPreferences before posting.
New entry

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-) was last changed on 02-Jul-2007 19:03 by UnknownAuthor