示例#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
 def configure(self, binder):
     binder.bind(ch.Person, annotated_with="good", to=ch.GoodPerson)
示例#4
0
 def configure(self, binder):
     binder.bind(ch.Person, to=ch.EvilPerson)
示例#5
0
 def configure(self, binder):
     binder.bind_scope(this.CustomScope, this.CustomScope())
     binder.bind(ch.Person, to=ch.EvilPerson)