framework
framework copied to clipboard
Lazy load @Inject type-casting
Currently the @Inject() property type is checked if it is @Component in the decorator itself. If @Inject() is run before @Component() of the injected type, the decorator will throw. So ComponentUtil.isComponent(type) should be lazy-loaded on ApplicationContext constructor or start() method.