[jboss-dev-forums] [Design of Embedded JBoss] - Re: Shortcomings of Virtual Archives (in progress)
jason.greene@jboss.com
do-not-reply at jboss.com
Mon Jul 13 13:53:59 EDT 2009
"ALRubinger" wrote :
| "jason.greene at jboss.com" wrote : If you don't have a class instance, then you have a very different API, that operates off of Files/URLs.
|
| addClass(Class<?> class) simply delegates out to addResource(String resource):
|
Perhaps we are both saying the same thing (just differently)?
My point was that these two methods should completely different behaviors. The class case should never need representation in the VFS, since the class instance (no matter where it came from), will work fine. In essence this is really the same as a specialized classloading configuration that pulls in files from outside the deployment. The major difference being that annotation scanning by frameworks such as ejb3 must be ran on these classes.
The resource case, on the otherhand, makes perfect sense for custom VFS behavior, since these really are files.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243356#4243356
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243356
More information about the jboss-dev-forums
mailing list