package com.blackduck.integration.detect.workflow.project;

import com.blackduck.integration.detect.workflow.event.Event;
import com.blackduck.integration.detect.workflow.event.EventSystem;
import com.blackduck.integration.util.NameVersion;

public class ProjectEventPublisher {
    private final EventSystem eventSystem;

    public ProjectEventPublisher(EventSystem eventSystem) {
        this.eventSystem = eventSystem;
    }

    public void publishProjectNameVersionChosen(NameVersion projectNameVersion) {
        eventSystem.publishEvent(Event.ProjectNameVersionChosen, projectNameVersion);
    }
}
