May i know what is actual purpose of registering a component/object with factory.
when a super class is registered with factory then is it necessarily to register child classes also with factory.
All methods which are available in super class will be automatically inherited to child classes also, then what is the purpose to register child classes with factory.