Helma logo
helma.org » Home > Stories > HopObject.getResource()

HopObject.getResource()

Returns a helma.framework.repository.Resource object defined for the prototype.

Syntax
HopObject.getResource(String)

Returns a resource referenced by it's name for the current HopObject's prototype - getResource() walks up the inheritance chain and through all defined repositories to find the resource and returns null if unsucessful.

Example
root.getResource("main.skin");
/usr/local/helma-apps/myApp/repository1/HopObject/main.skin
root.getResource("type.properties");
/usr/local/helma-apps/myApp/repository3/Root/type.properties
root.getResource("Functions.js");
/usr/local/helma-apps/myApp/repository17/Root/Functions.js


... comment


Page last modified on 2006-06-18 13:57 by rist