generic resource definition (to be inherited or registered for each type)
view registration method for inherited resource classes