Skip to content

Instantly share code, notes, and snippets.

@johnament
Created July 14, 2011 22:53
Show Gist options
  • Save johnament/1083666 to your computer and use it in GitHub Desktop.
Save johnament/1083666 to your computer and use it in GitHub Desktop.
<johnament> gastaldi: is it possible to create a service handler that could automatically bind a DAO for a node via an interface?
<gastaldi> johnament: I guess so, using Solder right ?
<johnament> gastaldi: yep
<johnament> gastaldi: basically, i think it would be easiest to provide jcr session capabilities as a service handler based on interface methods.
<gastaldi> hummm
<gastaldi> Seam JCR provides the impl
<gastaldi> And the App developer the interface
<gastaldi> right ?
<gastaldi> We should have some sort of annotations to make it happen
<gastaldi> So that info could be read on the Service handler impl
<gastaldi> This is what you mean right ? http://docs.jboss.org/modeshape/latest/manuals/reference/html/jcr-query-and-search.html
<johnament> gastaldi: yeah, we would need to define interfaces, app developer creates interfaces.
<johnament> gastaldi: query would be one way. we should also think about paths
<gastaldi> cool, and so no injection of javax.jcr.Session on the app developer code would be needed
<gastaldi> sounds reasonable
<johnament> gastaldi: if they want to use OCM then no
<gastaldi> cool. unfortunately I need to leave now. brb soon
<johnament> ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment