Revert "Hexagonal Architecture in Java"
This reverts commit 9e74f7cd22
.
This commit is contained in:
parent
754480d447
commit
3c4595757c
|
@ -1,35 +0,0 @@
|
|||
package com.baeldung.hexagonal.architecture;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
@AllArgsConstructor
|
||||
@Data
|
||||
public class Car {
|
||||
String manufacturerName;
|
||||
String fuleType;
|
||||
String modelNo;
|
||||
String yearOfManufacture;
|
||||
String vehicleType;
|
||||
int noOfGears;
|
||||
|
||||
public void startCar() {
|
||||
//Start the car
|
||||
}
|
||||
|
||||
public void stopCar() {
|
||||
//Stop the car
|
||||
}
|
||||
|
||||
public void changeGear(int gearNo){
|
||||
//Change gear
|
||||
}
|
||||
|
||||
public void openBoot() {
|
||||
//Open boot of the car
|
||||
}
|
||||
|
||||
public void enableChildLock() {
|
||||
//Enable child lock in the car
|
||||
}
|
||||
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
package com.baeldung.hexagonal.architecture;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class FordAdapter implements ManufacturingPort {
|
||||
|
||||
@Override
|
||||
public void manufacturingMethodology(Car car) {
|
||||
// Process for manufacturing ford car
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void manufacturingLocation(String location) {
|
||||
// Location at which ford manufacturing will take place
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void logoForTheCar(Car car) {
|
||||
// Put ford logo on the car
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void timeToMarketForTheCar(Car car) {
|
||||
// Find time to market for a particular ford car model
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<Car, Integer>> totalManufacturingVolume() {
|
||||
// Return car production volume of all ford manufacturing units
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> listOfAllFactories() {
|
||||
// Return list of all ford factories
|
||||
return null;
|
||||
}
|
||||
|
||||
public void fordEngineFuelTest(Car car) {
|
||||
//Do engine test for ford
|
||||
}
|
||||
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
package com.baeldung.hexagonal.architecture;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class HondaAdapter implements ManufacturingPort {
|
||||
|
||||
@Override
|
||||
public void manufacturingMethodology(Car car) {
|
||||
// Process for manufacturing honda car
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void manufacturingLocation(String location) {
|
||||
// Location at which honda manufacturing will take place
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void logoForTheCar(Car car) {
|
||||
// Put honda logo on the car
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void timeToMarketForTheCar(Car car) {
|
||||
// Find time to market for a particular honda car model
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Map<Car, Integer>> totalManufacturingVolume() {
|
||||
// Return car production volume of all honda manufacturing units
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> listOfAllFactories() {
|
||||
// Return list of all honda factories
|
||||
return null;
|
||||
}
|
||||
|
||||
public void carCrashAndSafetyTest(Car car) {
|
||||
//Do car crash test got honda car
|
||||
}
|
||||
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
package com.baeldung.hexagonal.architecture;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface ManufacturingPort {
|
||||
|
||||
public void manufacturingMethodology(Car car);
|
||||
public void manufacturingLocation(String location);
|
||||
public void logoForTheCar(Car car);
|
||||
public void timeToMarketForTheCar(Car car);
|
||||
public List<Map<Car,Integer>> totalManufacturingVolume();
|
||||
public List<String> listOfAllFactories();
|
||||
}
|
Loading…
Reference in New Issue