Then we have to ensure that the same vf instance is used in a given context.
If you want to switch to "vfsfile:" based URLs you're gonna have to cache anyways. Otherwise, performance is horrible, at least with the current implementation.
Its just a thought. Maybe it doesn't matter overall.
I guess I would first ask why we can't leave this in the deployer attachments realm:
VirtualFile vf = ... ClassFile cf = ... unit.addAttachment(vf.getPathName(), cf, cf.getClass());
so that we don't have to be looking in multiple places for the deployment metadata.
guess you're right...