mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-18 17:26:44 +00:00
15 lines
350 B
Java
15 lines
350 B
Java
package com.iluwatar.layers;
|
|
|
|
public class CakeViewImpl implements View {
|
|
|
|
private CakeBakingService cakeBakingService;
|
|
|
|
public CakeViewImpl(CakeBakingService cakeBakingService) {
|
|
this.cakeBakingService = cakeBakingService;
|
|
}
|
|
|
|
public void render() {
|
|
cakeBakingService.getAllCakes().stream().forEach((cake) -> System.out.println(cake));
|
|
}
|
|
}
|