Added placeholder bean
This commit is contained in:
parent
812f763620
commit
6cb52ba0c6
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user