mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-28 12:22:28 +00:00
deps: Refactor dependencies (#3224)
* remove spring dep move junit, logging, mockito under dep mgmt * upgrade anti-corruption-layer deps * async method invocation * balking, bloc * bridge to bytecode * caching * callback - cqrs * component - health check * hexagonal - metadata mapping * rest of the patterns * remove checkstyle, take spotless into use
This commit is contained in:
@@ -27,14 +27,14 @@ package com.iluwatar;
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* The notification pattern captures information passed between layers, validates the information, and returns
|
||||
* any errors to the presentation layer if needed.
|
||||
* The notification pattern captures information passed between layers, validates the information,
|
||||
* and returns any errors to the presentation layer if needed.
|
||||
*
|
||||
* <p>In this code, this pattern is implemented through the example of a form being submitted to register
|
||||
* a worker. The worker inputs their name, occupation, and date of birth to the RegisterWorkerForm (which acts
|
||||
* as our presentation layer), and passes it to the RegisterWorker class (our domain layer) which validates it.
|
||||
* Any errors caught by the domain layer are then passed back to the presentation layer through the
|
||||
* RegisterWorkerDto.</p>
|
||||
* <p>In this code, this pattern is implemented through the example of a form being submitted to
|
||||
* register a worker. The worker inputs their name, occupation, and date of birth to the
|
||||
* RegisterWorkerForm (which acts as our presentation layer), and passes it to the RegisterWorker
|
||||
* class (our domain layer) which validates it. Any errors caught by the domain layer are then
|
||||
* passed back to the presentation layer through the RegisterWorkerDto.
|
||||
*/
|
||||
public class App {
|
||||
|
||||
@@ -46,5 +46,4 @@ public class App {
|
||||
var form = new RegisterWorkerForm(NAME, OCCUPATION, DATE_OF_BIRTH);
|
||||
form.submit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user