aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/job/command/NoOpCommand.java
blob: 37636fcaa087f622dd2a3a8138317ba07439d050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package org.onap.vid.job.command;

import org.onap.vid.job.JobCommand;
import org.onap.vid.job.NextCommand;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.Map;

@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class NoOpCommand implements JobCommand {

    @Override
    public NextCommand call() {
        return null;
    }

    @Override
    public Map<String, Object> getData() {
        return Collections.emptyMap();
    }
}