An instance is returned which is created according to the registration scope with which they are registered.
ResolveException when type is not registered or there are multiple candidates available for type.
Resolve dependencies registered by super type:
class Cat : Animal { ... } class Dog : Animal { ... } container.register!(Animal, Cat); container.register!(Animal, Dog); container.resolve!(Animal, Cat); container.resolve!(Animal, Dog);
Resolve dependencies using a qualifier.
Dependencies can only resolved using this method if they are registered by super type.
Resolved dependencies are automatically autowired before being returned.