"steve.ebersole(a)jboss.com" wrote : I guess it comes down to the definition of
"correctness" I asked about before. I should have been more specific.
Concretely I was thinking of URLConnection.getContentType(), and wondering what would get
returned here for the vfs URL impl. But based on your answers I have to assume it is
something non-useful like "vfs' or some-such.
|
Well it should return the underlying real answer. But that
depends upon how good the protocol handler is.
In this case, Bill wrote it, so its a NYI :-)
I have not seen Emmanuel's code for this discovery, so I cannot give the best answer.
But I would assume something like this registerable with the Hibernate Configuration.
Probably even the discovery itself could get encapsulated into a registerable contract
which you could then provide. A contact like:
| public interface EntityScanner {
| /**
| * Note sure of the most appropriate return type here, but
| * it seems best to stay away from URL on vfs ;)
| */
| File[] getAnnotatedEntities(URL root);
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108991#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...