コード例 #1
0
 def configure(self, binder):
     binder.bind(ch.Person, to=ch.EvilPerson)
コード例 #2
0
 def configure(self, binder):
     binder.bind(ch.Person, annotated_with='good', to=ch.GoodPerson)
コード例 #3
0
ファイル: test_injector.py プロジェクト: bstanek/snake-guice
 def configure(self, binder):
     binder.bind(ch.Person, annotated_with="good", to=ch.GoodPerson)
コード例 #4
0
ファイル: test_injector.py プロジェクト: bstanek/snake-guice
 def configure(self, binder):
     binder.bind(ch.Person, to=ch.EvilPerson)
コード例 #5
0
ファイル: test_injector.py プロジェクト: rassilon/snake-guice
 def configure(self, binder):
     binder.bind_scope(this.CustomScope, this.CustomScope())
     binder.bind(ch.Person, to=ch.EvilPerson)