change the implementation of eager singleton

Signed-off-by: WanBin <ouyangwanbin@gmail.com>