[jboss-dev-forums] [Design of POJO Server] - Re: Embbedded - broken - some fixes - still not working
adrian@jboss.org
do-not-reply at jboss.com
Thu Nov 29 12:16:18 EST 2007
"steve.ebersole at 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#4108991
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108991
More information about the jboss-dev-forums
mailing list