Felix Meschberger wrote:

Hi Jim,

Jim White schrieb:

Hi gang!

The way I'd like to provide path mapping for classes is with JAX-RS
(Jersey) annontations.

Support for this would be a great addition to Sling IMHO.

Great minds and all... ;-)

That should be pretty straightforward for compiled bundles, but I think
it can work for scripts too (at least Groovy scripts anyhow).

For scripts (in general) it is a bit more problematic and I think a
different problem scope. Let me take a quick tour how Sling works.
...

If I wanted to have a mechanism so that whenever a script is added/updated (and probably on server startup too) in the repository (presumably in some designated part of the tree) that it gets executed, where should I look for API and/or related code?

My thought is basically a script-based extension mechanism rather than requiring bundles.

The use case being once Jersey is integrated (which would be with a bundle I expect - although we've been using Ivy with Groovy to dynamically load dependencies for Groovy scripts), I could add/update services by just editing a Groovy script with JAX-RS annotations.

Jim

Reply via email to