All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.serenitybdd.plugins.jira.client.FindByKeyLoader Maven / Gradle / Ivy

There is a newer version: 4.2.9
Show newest version
package net.serenitybdd.plugins.jira.client;

import com.google.common.cache.CacheLoader;
import net.serenitybdd.plugins.jira.domain.IssueSummary;

import java.util.Optional;

public class FindByKeyLoader extends CacheLoader> {
    private final JerseyJiraClient jiraClient;

    public FindByKeyLoader(JerseyJiraClient jiraClient) {
        this.jiraClient = jiraClient;
    }

    @Override
    public Optional load(String key) throws Exception {
        return jiraClient.loadByKey(key);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy