The central class managing the Request Scope Application Context.
The principal method useful to users is getBeanLocator() which
returns a BeanLocator holding the request context for the current thread. For
each thread entering an RSAC request, it must call
startRequest() before acquiring any request beans, and
endRequest() at the end of its cycle (the latter is most
important).
In a "pure RSAC" application, the request logic will be defined by the
getting of a single "root bean" from the BeanLocator, although initial setup
and any proxies may require additional calls to getBeanLocator() .
This class will be due for some refactoring as soon as the next piece of
functionality gets added, getting on for 400 lines. Please note that this
class currently illegally casts BeanDefinitions received from Spring to
AbstractBeanDefinition, which is a potential dependency weakness. This
approach is known to work with Spring 1.1.2 through 2.0.
author: Antranig Basman (antranig@caret.cam.ac.uk) |