Spring integration for Pustefix
Ideas about how Spring and Pustefix can be integrated are gathered on this page.
Goals
- IoC (Inversion of Control) for Pustefix
- Better (more modular) configuration framework
- Spring support
Ideas
- ContextResources and Handlers are beans
- Wiring is done using annotations http://static.springframework.org/spring/docs/2.5.x/reference/new-in-2.html#new-in-2-ioc-annotations
- Configuration parser generates configuration objects using pluggable mechanism
- Spring configuration (BeanDefinitions) are generated from configuration objects using a generic converter.
How to configure Spring context
We have to create a Spring ApplicationContext for each application. As we do not have an explicit Spring configuration (like an XML file), we have to create the configuration on the fly. This can be achieved by iterating over the configuration objects (details not clear yet) and creating a bean name - Spring BeanDefinition (GenericBeanDefinition might be the right one) pair for each ressource, that should be registered within the context. References to other beans can be given by using a RuntimeBeanReference or RuntimeBeanNameReference object as the value of a PropertyValue object attached to a BeanDefinition.
