|
So we know the 'why' now, but that still leaves me with the issue. Should containsBean() be modified to check the parent for the bean? I think it should. What's the point in having a parent otherwise? (Forgive me for maybe not knowing all ColdSpring features yet...) The other option would be modifiying findBeanNameByType() so it handles extended component types correctly. Any other options? Besides not extending services... Regards, Ruud Kurt Wiersma schreef: The idea of having a hierarchical bean factory was mine. The idea is that if you have an application whose services rely on a set of shared, enterprise wide, services this application could take the enterprise services in as a parent bean factory to its factory and any dependencies that the application's services have on the enterprise services would be resolved by CS since they would live in the same bean factory. The hierarchical AppContexts, on the other hand, are setup to allow you setup a series of separate bean factories for an application which do not resolve dependencies between the different factories. (example: would be large application with different modules) I probably need to publish a good example of how I use the hierarchical bean factories for this to make more sense. Currently I don't have a use for the hierarchical AppContexts but I could see how in a really large application they might be useful. I should note too that inspiration for both of these ideas came directory from Java's Spring framework. |
- [coldspring-dev] Issue with extending cfc's Ruud Hermans
- [coldspring-dev] Issue with extending cfc's Ruud Hermans
- [coldspring-dev] Issue with extending cfc's Sean Corfield
- [coldspring-dev] Issue with extending cfc's Dave Ross
- [coldspring-dev] Issue with extending cfc's Chris Scott
- [coldspring-dev] Issue with extending cfc's Sean Corfield
- [coldspring-dev] Issue with extending cfc's Ruud Hermans
- [coldspring-dev] Issue with extending cfc's Sean Corfield
- [coldspring-dev] Issue with extending cfc's Dave Ross
- [coldspring-dev] Issue with extending cfc's Kurt Wiersma
- [coldspring-dev] Issue with extending cfc's Ruud Hermans
