assignment service + executor-base improvements #23

Merged
Maece97 merged 8 commits from assignment into dev 2021-10-17 11:57:43 +00:00
2 changed files with 20 additions and 2 deletions
Showing only changes of commit 6cb52ba0c6 - Show all commits

View File

@ -0,0 +1,20 @@
package ch.unisg.executorBase.executor.application.service;
import org.springframework.stereotype.Component;
import ch.unisg.executorBase.executor.application.port.in.TaskAvailableCommand;
import ch.unisg.executorBase.executor.application.port.in.TaskAvailableUseCase;
import lombok.RequiredArgsConstructor;
import javax.transaction.Transactional;
@RequiredArgsConstructor
@Component
@Transactional
public class TaskAvailableService implements TaskAvailableUseCase {
@Override
public void newTaskAvailable(TaskAvailableCommand command) {
// Placeholder so spring can create a bean
}
}

View File

@ -1,6 +1,5 @@
package ch.unisg.executor2.executor.application.service;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import ch.unisg.executor2.executor.domain.Executor;
@ -17,7 +16,6 @@ import javax.transaction.Transactional;
public class TaskAvailableService implements TaskAvailableUseCase {
@Override
@Async
public void newTaskAvailable(TaskAvailableCommand command) {
Executor executor = Executor.getExecutor();