Carsten Ziegeler created SLING-2740:
---------------------------------------

             Summary: Clarify Resource#getResourceSuperType
                 Key: SLING-2740
                 URL: https://issues.apache.org/jira/browse/SLING-2740
             Project: Sling
          Issue Type: Improvement
          Components: API
            Reporter: Carsten Ziegeler
            Assignee: Carsten Ziegeler
             Fix For: API 2.3.2


The javadoc of Resource#getResourceSuperType currently says:
"Returns the super type of the type of the resource or <code>null</code> if the 
{@link #getResourceType()} has no supertype."
however all implementations and the usage of this method are different from 
this: this method returns only the resource super type if it knows this type by 
itself, e.g. for a JCR resource if it has a super type property. Otherwise it 
returns null.
So basically this method can be used by a resource to overwrite or force a 
resource type hierarchy

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to