mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 16:58:47 +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:
+2
-5
@@ -26,13 +26,10 @@ package com.iluwatar.front.controller;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* Custom exception type.
|
||||
*/
|
||||
/** Custom exception type. */
|
||||
public class ApplicationException extends RuntimeException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Serial private static final long serialVersionUID = 1L;
|
||||
|
||||
public ApplicationException(Throwable cause) {
|
||||
super(cause);
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
*/
|
||||
package com.iluwatar.front.controller;
|
||||
|
||||
/**
|
||||
* Command for archers.
|
||||
*/
|
||||
/** Command for archers. */
|
||||
public class ArcherCommand implements Command {
|
||||
|
||||
@Override
|
||||
|
||||
@@ -26,9 +26,7 @@ package com.iluwatar.front.controller;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* View for archers.
|
||||
*/
|
||||
/** View for archers. */
|
||||
@Slf4j
|
||||
public class ArcherView implements View {
|
||||
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
*/
|
||||
package com.iluwatar.front.controller;
|
||||
|
||||
/**
|
||||
* Command for catapults.
|
||||
*/
|
||||
/** Command for catapults. */
|
||||
public class CatapultCommand implements Command {
|
||||
|
||||
@Override
|
||||
|
||||
@@ -26,9 +26,7 @@ package com.iluwatar.front.controller;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* View for catapults.
|
||||
*/
|
||||
/** View for catapults. */
|
||||
@Slf4j
|
||||
public class CatapultView implements View {
|
||||
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
*/
|
||||
package com.iluwatar.front.controller;
|
||||
|
||||
/**
|
||||
* Commands are the intermediary between requests and views.
|
||||
*/
|
||||
/** Commands are the intermediary between requests and views. */
|
||||
public interface Command {
|
||||
|
||||
void process();
|
||||
|
||||
@@ -69,4 +69,4 @@ public class Dispatcher {
|
||||
return UnknownCommand.class;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,9 +26,7 @@ package com.iluwatar.front.controller;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* View for errors.
|
||||
*/
|
||||
/** View for errors. */
|
||||
@Slf4j
|
||||
public class ErrorView implements View {
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
package com.iluwatar.front.controller;
|
||||
|
||||
/**
|
||||
* The FrontController is responsible for handling all incoming requests. It delegates
|
||||
* the processing of requests to the Dispatcher, which then determines the appropriate
|
||||
* command and view to render the correct response.
|
||||
* The FrontController is responsible for handling all incoming requests. It delegates the
|
||||
* processing of requests to the Dispatcher, which then determines the appropriate command and view
|
||||
* to render the correct response.
|
||||
*/
|
||||
public class FrontController {
|
||||
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
*/
|
||||
package com.iluwatar.front.controller;
|
||||
|
||||
/**
|
||||
* Default command in case the mapping is not successful.
|
||||
*/
|
||||
/** Default command in case the mapping is not successful. */
|
||||
public class UnknownCommand implements Command {
|
||||
|
||||
@Override
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
*/
|
||||
package com.iluwatar.front.controller;
|
||||
|
||||
/**
|
||||
* Views are the representations rendered for the user.
|
||||
*/
|
||||
/** Views are the representations rendered for the user. */
|
||||
public interface View {
|
||||
|
||||
void display();
|
||||
|
||||
Reference in New Issue
Block a user