Development Guide

Configurator

Configurator is an interface, which you can implement in your module factories to cause a configuration pane to appear in Module configuration dialogs.

Configurator is a single method interface that creates configuration pane for modules, so that the GUI components of PETEP can display it to the user.

Configurator interface

com.warxim.petep.persistence.Configurator
/**
 * Configurator interface that creates graphical configuration pane for module configuration.
 * @param <C> Type of the configuration
 */
@PetepAPI
@FunctionalInterface
public interface Configurator<C> {
    /**
     * Creates configuration pane
     * @return ConfigPane for given configuration type
     * @throws IOException If the config pane could not be created
     */
    ConfigPane<C> createConfigPane() throws IOException;
}