Hey,
I have been experimenting with CS over the past week, and I have two
questions:
1) Is there a way to make a bean "private" so that it can be used to
construct other beans, but is not accessible externally by getBean()? For
example, I have a database connection object that gets passed into a few
different constructors, but I don't want a user to be able to retrieve the
database object directly from the factory via getBean().
2) I am using MachII and I think I would like to have one factory XML file
for my Model and one XML file for instantiating the Model components in my
Mach-II listeners. The factory for the Listeners would call getBean() on
the factory generated for the Model. I believe this would make testing the
Model easier and improve documentation concerning what is necessary for the
Model and what is necessary for Mach-II. How would I implement this?
Thanks,
Jon
- [coldspring-dev] "private" beans and integrating w... Jon Gunnip
-