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:
Ilkka Seppälä
2025-03-29 19:34:27 +02:00
committed by GitHub
parent 371439aeaa
commit 0ca162a55c
1863 changed files with 14408 additions and 17637 deletions
@@ -29,24 +29,23 @@ import java.util.UUID;
import org.springframework.stereotype.Service;
/**
* This service is responsible for handling request operations including
* creation, start, and completion of requests.
* This service is responsible for handling request operations including creation, start, and
* completion of requests.
*/
@Service
public class RequestService {
RequestRepository requestRepository;
RequestStateMachine requestStateMachine;
public RequestService(RequestRepository requestRepository,
RequestStateMachine requestStateMachine) {
public RequestService(
RequestRepository requestRepository, RequestStateMachine requestStateMachine) {
this.requestRepository = requestRepository;
this.requestStateMachine = requestStateMachine;
}
/**
* Creates a new Request or returns an existing one by it's UUID.
* This operation is idempotent: performing it once or several times
* successively leads to an equivalent result.
* Creates a new Request or returns an existing one by it's UUID. This operation is idempotent:
* performing it once or several times successively leads to an equivalent result.
*
* @param uuid The unique identifier for the Request.
* @return Return existing Request or save and return a new Request.