You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classAimplementsFoo {}
classBimplementsFoo {}
classCommandextendsBaseCommand {
@DependencyFoofoo;
}
manager.registerDependency(Foo.class, newA());
BaseCommandcommand = newCommand();
manager.registerCommand(command);
// command.foo == instance of A// 3 minutes latermanager.registerDependency(Foo.class, newB());
// command.foo should be updated to now be the instance of B
Anytime dependencies are set, re-apply the injection phase and update the dependency to the latest value.
The text was updated successfully, but these errors were encountered:
Given:
Anytime dependencies are set, re-apply the injection phase and update the dependency to the latest value.
The text was updated successfully, but these errors were encountered: