[ 
https://issues.apache.org/jira/browse/SLING-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734077#action_12734077
 ] 

Carsten Ziegeler commented on SLING-697:
----------------------------------------

I'll go with the ResourceUtil method as this is more generic, for example you 
can use it for Resource.listChildren and other purposes
If a resource is not adaptable, it is ignored - if one wants to distinguish 
between resources that can be adapted to the given class and then fallback to 
something for others, one should programm the whole loop.

> enhance ResourceResolver#findResources() signature to support typing
> --------------------------------------------------------------------
>
>                 Key: SLING-697
>                 URL: https://issues.apache.org/jira/browse/SLING-697
>             Project: Sling
>          Issue Type: Improvement
>          Components: API
>            Reporter: Dominique Jäggi
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>
> it would be nice to be able to receive a typed iterator when using 
> ResourceResolver#findResources():
>  final Iterator<MyPojo> iterator = resourceResolver.findResources(statement, 
> Query.XPATH, MyPojo.class);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to