Revert "Hexagonal Architecture in Java"

This reverts commit 9e74f7cd22.
This commit is contained in:
Rahul Srivastava 2018-11-05 13:18:13 +05:30
parent 754480d447
commit 3c4595757c
4 changed files with 0 additions and 145 deletions

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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();
}