1. fix bug:the entity must be created by event-driven
2. fix bug:beans can't initialized before scaning components