remove lombok, related to #1503

This commit is contained in:
Vladislav Golubinov
2020-09-06 11:42:39 +03:00
parent bd48d6ce10
commit 2e36a11e24
4 changed files with 51 additions and 30 deletions

View File

@ -23,8 +23,10 @@
package com.iluwatar.abstractfactory;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;
/**
* The Abstract Factory pattern provides a way to encapsulate a group of individual factories that
@ -40,12 +42,16 @@ import lombok.extern.slf4j.Slf4j;
* and its implementations ( {@link ElfKingdomFactory}, {@link OrcKingdomFactory}). The example uses
* both concrete implementations to create a king, a castle and an army.
*/
@Slf4j
public class App implements Runnable {
@Getter
private static Logger log = LoggerFactory.getLogger(App.class);
private final Kingdom kingdom = new Kingdom();
public Kingdom getKingdom() {
return kingdom;
}
/**
* Program entry point.
*

View File

@ -1,14 +1,35 @@
package com.iluwatar.abstractfactory;
import lombok.Data;
@Data
public class Kingdom {
private King king;
private Castle castle;
private Army army;
public King getKing() {
return king;
}
public Castle getCastle() {
return castle;
}
public Army getArmy() {
return army;
}
public void setKing(King king) {
this.king = king;
}
public void setCastle(Castle castle) {
this.castle = castle;
}
public void setArmy(Army army) {
this.army = army;
}
/**
* The factory of kingdom factories.
*/