Hi,

Bertrand Delacretaz schrieb:
> Hi,
> 
> On Sat, Jan 3, 2009 at 5:21 AM, Torgeir Veimo <[email protected]> wrote:
>> ...Ok, I found the configuration for DefaultResourceTypeProvider. However,
>> looking at the source for this component, it seem to be used only for node
>> types of type nt:unstructured?...
> 
> That's correct, and maybe that check is not really needed - I don't
> remember off the top of my head if that check really takes place after
> all other possibilities for defining the resource type have been
> exhausted.

Resource Type resolution for JCR-based resources takes these three steps:

  * check slign:resourceType property
  * otherwise check ResourceTypeProviders
  * otherwise use primary node type

I could imagine, that the path-based resource type provider should be
taken if no more specific node type is used than nt:unstructured. For
example, you might - in some situations - want to is nt:file of a file
as the resource type and not the path based resource type.

Of course YMMV and the path based resource type provider might have to
be enhanced to use other selection criteria.

Regards
Felix

> 
> You might want to try removing that check for nt:unstructured, and see
> if the launchpad/testing tests still pass.
> 
> -Bertrand
> 
>> ...
>> http://svn.apache.org/repos/asf/incubator/sling/trunk/samples/path-based-rtp/src/main/java/org/apache/sling/samples/pathbasedrtp/DefaultResourceTypeProvider.java...
> 

Reply via email to