| An RSAC-specific TargetSource, which will be permanently maintained in the
RSAC ThreadLocal container. A sort of multi-way cross between
ThreadLocalTargetSource, HotSwappableTargetSource and
LazyInitTargetSource...
An RLTS will be automatically created for every bean in the context
marked as lazy-init="true" , converting it into a
very lazy bean
Note that the one exposed dependency, targetBeanName, is actually fake.
Since we have only ONE RLTS per thread, the name is actually stashed by
RSACBeanLocator, which on thread init creates not only a ProxyFactoryBean,
but also a forked instance of this bean, with all the dependencies
delivered via constructor.
This facility could be provided by a Spring AutoProxyCreator but there
isn't time during a request cycle.
author: Antranig Basman (amb26@ponder.org.uk) |