Hi,
I've checked in enhancement for the Spring integration library.
Now we can inject spring beans as services easily on application
assembly level.
That also means we can control visibility of such services this same way
as we do for Qi4j composites.
To enable this feature concrete application bootstrap class must
implement interface |ApplicationContextAware
<eclipse-javadoc:%E2%98%82=qi4j-lib-spring/src%5C/main%5C/java%3Corg.qi4j.library.spring.bootstrap%7BQi4jApplicationBootstrap.java%E2%98%83Qi4jApplicationBootstrap%E2%98%82ApplicationContextAware>|.
Then it's possible to do for example such import:
moduleAssembly.importServices( TextProcessingService.class
).setMetaInfo(this.applicationContext.getBean( TO_UPPERCASE_SERVICE_ID ) );
I had to move the code which creates the application from the
Qi4jBootstrapBeanDefinitionParser to Qi4jApplicationFactoryBean.
I think that after that change the responsibility of these classes is
way more clear. When parser does parsing, the factory bean creates the
application.
Cheers,
Krzysztof
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev