add decorator register hooks and type to baseresource