|
From: Ryan J. M. <ry...@da...> - 2008-07-15 13:13:59
|
I've been working on an example (most of which I have committed) which uses EJB3 + JPA + Seam. The contact entity is an object graph with multiple child elements. Ideally what I'd like to be able to do is to have the Contact entity that is returned become a sub-resource. However, we don't have a ResourceFactory that can handle that. So I was thinking about an EntityResourceFactory, but I see some challenges: Introducing JPA (or Hibernate) would create another dependency The ResourceMethodRegistry does not dynamically load ResourceFactory instances. For example, if we could have a another project load a custom ResourceFactory, how is it located and how does it get utilized? There doesn't appear to be a clear way of having ResourceMethodRegistry choose a particular ResourceFactory instance I don't know if I'm missing anything, but I see this as an issue and something that the Seam folks might run into some issues? Ryan- |