Hi Bertrand,

ok the way how you describe it you'd actually do something "above" the
existing ResourceResolution. I'm not really sure if we win so much with
that - a lock in of the resourceType  might be absolutely sufficient and
wouldn't add further complexity to understand resolution mechanisms.

So we would have something that would define

a) Tenant /content/xyz would be bound to assembly_a (for now skipping the
question of versioned lookup that could be searchpath sepecific or another
mechansism)
b) this binding would force the resourceResolver to resolve resources
underneath /content/xyz only if they are located underneath
<searchpath>/assembly_a
c) the apps folder of assembly_a would contain the rendering resources or
have the assembly specific servlets mapped to. Every servlet or script used
within the assembly app would have a representation there which could as
minimum just have a resourceSuperType that points to the modules
resourceType and therefore expose the plain feature. Assembly specific
overlays can be applied to these mapping nodes at any time without impact
on third assemblies (unless we allow chained assemblies)

The beauty of that would be that it just requires addition of mapping logic
and the constraints in the resourceResolver but no further addition.

Sidenote:
- I'm leaving out details like static inclussions with predefined
resourceTypes within scripts the assembly where we would have to clarify if
those are ok or if we completely abandon mapping beyond superType
resolution to enforce a unique way of declaring mapped Types within an
assembly.

Cheers
Dominik


On Thu, Jan 29, 2015 at 3:03 PM, Bertrand Delacretaz <[email protected]
> wrote:

> Hi Dominik,
>
> On Thu, Jan 29, 2015 at 2:52 PM, Dominik Süß <[email protected]>
> wrote:
> > ...I had a chance to look at that model yesterday and absolutely think
> this is
> > a great way since it is not too far away from what we have right now...
>
> Yeah, we might even be able to run an existing Sling instance with
> /libs and /apps as a "legacy" tenant on this new model by moving the
> existing content around a bit, to provide a smooth transition.
>
> > ...The detail about the constraint to just use an assembly would
> therefore be
> > a constraint on the resourceType Path that would be evaluated by the
> > resourceResolver and ignores resourceType not being part of the
> assembly....
>
> I was thinking a bit differently, resource types just need to start
> with the module path like blog/post for the blog module.
>
> Then, the script resolver only considers /assemblies/T where T is the
> tenant ID, looks for a script or servlet reference resolution for
> blog/post under there, and remaps that to the actual module script
> based on which modules the assembly points to.
>
> All this needs to be proved by some working code if we want to
> seriously kick the tires of this new model.
>
> -Bertrand
>

Reply via email to