"epbernard" wrote :
| Even if we define a proprietary abstraction implemented by JBoss AS and passed as an
argument to createContainerEntityManagerFactory (in the Map), it does not solves the whole
problem.
| JBoss AS has to conform to the PersistenceUnitInfo contract so that other providers
can bootstrap :)
I'm not saying don't support the spec. I'm saying we can optimize it.
There are really two seperate issues:
1) The embedded stuff where we don't require a packaging step to run tests,
we create a VFS context that collects the disparate resources from across
the IDE project. A sort of in memory symbolic link.
See the VFSTestCase in the embedded project.
2) Optimizing the scanning/parsing of the class files for annotations.
Scanning we can trim the list the list to speed things up
since we already did the scan and know which are @Entity.
And we've already parse those classes that do match.
The issue that started this thread was (1).
(2) is a nice to have. At the moment we have EJB3, Hibernate, Tomcat, AOP
and in the future the MC all needing to scan packages for annotated classes.
Doing it N times for N different modules is just a waste.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109027#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...