package com.arms.api.issue.priority.strategy;

import com.arms.api.issue.priority.model.IssuePriorityDTO;

import com.arms.api.serverinfo.model.vo.ServerInfoVO;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class IssuePriorityStrategyFactory {

    IssuePriorityStrategy issuePriorityStrategy;

    public void registerIssuePriorityStrategy(IssuePriorityStrategy issuePriorityStrategy) {
        this.issuePriorityStrategy = issuePriorityStrategy;
    }

    public List<IssuePriorityDTO> getIssuePriorityList(ServerInfoVO serverInfoVO) {
        return this.issuePriorityStrategy.getIssuePriorityList(serverInfoVO);
    }

}
