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