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

pl.allegro.tech.build.axion.release.domain.hooks.SimpleReleaseHookAction Maven / Gradle / Ivy

There is a newer version: 1.18.15
Show newest version
package pl.allegro.tech.build.axion.release.domain.hooks;

import pl.allegro.tech.build.axion.release.domain.hooks.ReleaseHookFactory.CustomAction;

public class SimpleReleaseHookAction implements ReleaseHookAction {

    private final CustomAction customAction;

    public SimpleReleaseHookAction(CustomAction customAction) {
        this.customAction = customAction;
    }

    @Override
    public void act(HookContext hookContext) {
        customAction.apply(hookContext);
    }

    public final static class Factory extends DefaultReleaseHookFactory {
        @Override
        public ReleaseHookAction create(CustomAction customAction) {
            return new SimpleReleaseHookAction(customAction);
        }

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy