Slide 247
Slide 247 text
247
Debug 用
DI 設定
public class ProductDependencyConfig implements DependencyConfig {
private HashMap, Class extends UseCase extends I
= new HashMap, Class extends UseCase ext
{
put(UserAddInputData.class, UserAddInteractor.class);
put(UserDeleteInputData.class, UserDeleteInteractor.class);
put(UserGetDetailInputData.class, UserGetDetailInteractor.class);
put(UserGetListInputData.class, UserGetListInteractor.class);
put(UserUpdateInputData.class, UserUpdateInteractor.class);
}
};
// ...
}
public class DebugDependencyConfig implements DependencyConfig {
private HashMap, Class extends UseCase extends I
= new HashMap, Class extends UseCase ext
{
put(UserAddInputData.class, StubUserAddInteractor.class);
put(UserDeleteInputData.class, StubUserDeleteInteractor.class);
put(UserGetDetailInputData.class, StubUserGetDetailInteractor.class);
put(UserGetListInputData.class, StubUserGetListInteractor.class);
put(UserUpdateInputData.class, StubUserUpdateInteractor.class);
}
};
// ...
}
Product 用
DI 設定