Pages

Tuesday, 24 December 2013

ValueMap and his friends

The InheritanceValueMap is an extension of the ValueMap which allows to take the hierarchy of resources into account while looking for properties. As such, if a property is not found on the current resource, it will be looked up on its parent and so on. The exact inheritance mechanism depends on the implementation.

For this purpose, the additional methods getInherited(String, Class) and getInherited(String, Object) are added to the ValueMap interface. 

Refer the below URLs:

http://experiencedelivers.adobe.com/cemblog/en/experiencedelivers/2013/02/valuemap-and-his-friend.html

http://labs.sixdimensions.com/blog/2012-07-23/good-know-inheritancevaluemap/?goback=%25252Egde_2397256_member_137623130#.UA3NuzGe6qx

http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/commons/inherit/InheritanceValueMap.html

http://experiencedelivers.adobe.com/cemblog/en/experiencedelivers/2012/06/basic-cq5-code-samples.html



No comments:

Post a Comment

Converting InputStream to String

    private String convertToString(InputStream inputStreamObj)             throws IOException {         if (inputStreamObj != null) {     ...