同类型不同名
public class MyModule implements Module {
public void loadModule(ApiBinder apiBinder) throws Throwable {
apiBinder.bindType(ICache.class).nameWith("user").to(...);
apiBinder.bindType(ICache.class).nameWith("data").to(...);
}
}
public class UseBean {
@Inject("user")
private ICache user;
@Inject("data")
private ICache data;
}