com.chutneytesting.action.domain.ActionTemplateRegistry Maven / Gradle / Ivy
The newest version!
/*
* SPDX-FileCopyrightText: 2017-2024 Enedis
*
* SPDX-License-Identifier: Apache-2.0
*
*/
package com.chutneytesting.action.domain;
import com.chutneytesting.action.spi.Action;
import java.util.Collection;
import java.util.Optional;
/**
* Registry for {@link ActionTemplate}.
*/
public interface ActionTemplateRegistry {
/**
* Refresh all available {@link ActionTemplate} based on given {@link ActionTemplateLoader}.
* Main use case, except for initialization, is when {@link Action} classes are added to the classpath at runtime.
*/
void refresh();
/**
* @return a {@link ActionTemplate} or empty if the given type did not matched any registered {@link ActionTemplate}
*/
Optional getByIdentifier(String identifier);
Collection getAll();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy