Added placeholder bean

This commit is contained in:
Marcel 2021-10-17 11:07:34 +02:00
parent 812f763620
commit 6cb52ba0c6
2 changed files with 20 additions and 2 deletions

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