[ymeng] Register bean with its all hierarchy