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

com.chutneytesting.task.domain.TaskTemplateRegistry Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package com.chutneytesting.task.domain;

import com.chutneytesting.task.spi.Task;
import java.util.Collection;
import java.util.Optional;

/**
 * Registry for {@link TaskTemplate}.
 */
public interface TaskTemplateRegistry {

    /**
     * Refresh all available {@link TaskTemplate} based on given {@link TaskTemplateLoader}.
* Main use case, except for initialization, is when {@link Task} classes are added to the classpath at runtime. */ void refresh(); /** * @return a {@link TaskTemplate} or empty if the given type did not matched any registered {@link TaskTemplate} */ Optional getByIdentifier(String identifier); Collection getAll(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy