All,
I was wondering about the validity of another interface that can be
implemented by FactoryBeans, TargetBeanAware that would pass in the
target bean to the FactoryBean before the first call to getObject(). The
reason for this is that I wanted to build CommonsLogFactoryBean that
would automatically pass the target bean a Log instance whose name was
the target beans class name.
Maybe this could be encapsulted into a TargetAwareFactoryBean with the
getObject() method accepting a single Object argument for the target bean.
What are your thoughts or do we have something like this already I have
just missed it in the docs?
Rob
|