pl.allegro.tech.build.axion.release.domain.hooks.SimpleReleaseHookAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of axion-release-plugin Show documentation
Show all versions of axion-release-plugin Show documentation
Gradle release and version management plugin
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