[
https://issues.jboss.org/browse/WELD-836?page=com.atlassian.jira.plugin.s...
]
Krzysztof Maslak commented on WELD-836:
---------------------------------------
I run my example in JBoss AS7. The source of my confusion was that VFSURLScanner was not
performing scanning of the given jars. AS7 is shipped with jboss-vfs-3.0.0.CR5. Current
WELD implementation uses JBoss-vfs 2.1.3.SP1. There are number of cool improvements with
this new vfs version but my issue is that, in the visit method ( that is triggered in
VFSURLScanner ) inside VirtualFile there is a guard which check if the scanned file
isDirectory ( it checks against filesystem ) whereas before there was isLeaf with check
against provided handler. The scanning of those jars stops there, as they are not
recognized as directories.
WELD should try to resolve injection points in webapp's jar
files
-----------------------------------------------------------------
Key: WELD-836
URL:
https://issues.jboss.org/browse/WELD-836
Project: Weld
Issue Type: Feature Request
Reporter: Krzysztof Maslak
Attachments: WEB-INF_lib__jar_scanner.patch
Having following example scenario:
webapp.war
- /WEB-INF/lib/jar-with-some-nice-business-logic.jar - contains some injection points
( i.e. ICacheManager ) and using DefaultBean shipped with SeamSolder a default
implementation ( as the injection points have to be satisfied )
- /WEB-INF/lib/caching-solution-provider.jar - provides CacheManagerImpl
Having this simple example I would like to have this injection point satisfied by this
caching-solution-provider.jar. With such solution I would be able to change my
caching-solution-provider.jar without any code modification just by changing dependency in
pom.xml for another cache provider which would be able to satisfy my contract.
Then my development process would be similar to development in OSGi and blueprint as DI
provider. I would care only about fulfilling the contracts by various artefacts.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira