mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 04:59:21 +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:
@@ -40,9 +40,7 @@ package com.iluwatar.proxy;
|
||||
*/
|
||||
public class App {
|
||||
|
||||
/**
|
||||
* Program entry point.
|
||||
*/
|
||||
/** Program entry point. */
|
||||
public static void main(String[] args) {
|
||||
|
||||
var proxy = new WizardTowerProxy(new IvoryTower());
|
||||
@@ -51,6 +49,5 @@ public class App {
|
||||
proxy.enter(new Wizard("Black wizard"));
|
||||
proxy.enter(new Wizard("Green wizard"));
|
||||
proxy.enter(new Wizard("Brown wizard"));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,14 +26,11 @@ package com.iluwatar.proxy;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* The object to be proxied.
|
||||
*/
|
||||
/** The object to be proxied. */
|
||||
@Slf4j
|
||||
public class IvoryTower implements WizardTower {
|
||||
|
||||
public void enter(Wizard wizard) {
|
||||
LOGGER.info("{} enters the tower.", wizard);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,9 +26,7 @@ package com.iluwatar.proxy;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
/**
|
||||
* Wizard.
|
||||
*/
|
||||
/** Wizard. */
|
||||
@RequiredArgsConstructor
|
||||
public class Wizard {
|
||||
|
||||
@@ -38,5 +36,4 @@ public class Wizard {
|
||||
public String toString() {
|
||||
return name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
*/
|
||||
package com.iluwatar.proxy;
|
||||
|
||||
/**
|
||||
* WizardTower interface.
|
||||
*/
|
||||
/** WizardTower interface. */
|
||||
public interface WizardTower {
|
||||
|
||||
void enter(Wizard wizard);
|
||||
|
||||
@@ -26,9 +26,7 @@ package com.iluwatar.proxy;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/**
|
||||
* The proxy controlling access to the {@link IvoryTower}.
|
||||
*/
|
||||
/** The proxy controlling access to the {@link IvoryTower}. */
|
||||
@Slf4j
|
||||
public class WizardTowerProxy implements WizardTower {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user