Skip to content

Commit 9def3e3

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 40cedde + 2a85b9c commit 9def3e3

26 files changed

Lines changed: 147 additions & 389 deletions

File tree

‎osgi/intro/osgi-intro-sample-activator/pom.xml‎

Lines changed: 0 additions & 55 deletions
This file was deleted.

‎osgi/intro/osgi-intro-sample-activator/src/main/java/com/baeldung/osgi/sample/activator/HelloWorld.java‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎osgi/intro/osgi-intro-sample-client/pom.xml‎

Lines changed: 0 additions & 49 deletions
This file was deleted.

‎osgi/intro/osgi-intro-sample-client/src/main/java/com/baeldung/osgi/sample/client/Client.java‎

Lines changed: 0 additions & 44 deletions
This file was deleted.

‎osgi/intro/osgi-intro-sample-service/pom.xml‎

Lines changed: 0 additions & 46 deletions
This file was deleted.

‎osgi/intro/osgi-intro-sample-service/src/main/java/com/baeldung/osgi/sample/service/definition/Greeter.java‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎osgi/intro/osgi-intro-sample-service/src/main/java/com/baeldung/osgi/sample/service/implementation/GreeterImpl.java‎

Lines changed: 0 additions & 30 deletions
This file was deleted.

‎osgi/intro/pom.xml‎

Lines changed: 0 additions & 87 deletions
This file was deleted.
File renamed without changes.
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
package com.baeldung.templatemethodpattern.application;
22

33
import com.baeldung.templatemethodpattern.model.Computer;
4+
import com.baeldung.templatemethodpattern.model.ComputerBuilder;
5+
import com.baeldung.templatemethodpattern.model.HighEndComputerBuilder;
6+
import com.baeldung.templatemethodpattern.model.StandardComputerBuilder;
47
import com.baeldung.templatemethodpattern.model.HighEndComputer;
58
import com.baeldung.templatemethodpattern.model.StandardComputer;
69

710
public class Application {
811

912
public static void main(String[] args) {
10-
Computer standardComputer = new StandardComputer();
11-
standardComputer.buildComputer();
13+
ComputerBuilder standardComputerBuilder = new StandardComputerBuilder();
14+
Computer standardComputer = standardComputerBuilder.buildComputer();
1215
standardComputer.getComputerParts().forEach((k, v) -> System.out.println("Part : " + k + " Value : " + v));
1316

14-
Computer highEndComputer = new HighEndComputer();
15-
highEndComputer.buildComputer();
17+
ComputerBuilder highEndComputerBuilder = new HighEndComputerBuilder();
18+
Computer highEndComputer = highEndComputerBuilder.buildComputer();
1619
highEndComputer.getComputerParts().forEach((k, v) -> System.out.println("Part : " + k + " Value : " + v));
1720
}
1821
}

0 commit comments

Comments
 (0)