eu.merrymake.service.java.MerrymakeInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-service-library Show documentation
Show all versions of java-service-library Show documentation
Various tools for interacting with Merrymake.
The newest version!
package eu.merrymake.service.java;
public interface MerrymakeInterface {
/**
* Used to link actions in the Merrymake.json file to code.
* @param action the action from the Merrymake.json file
* @param handler the code to execute when the action is triggered
* @return the Merrymake builder to define further actions
*/
MerrymakeInterface handle(String action, ActionHandler handler);
/**
* Used to define code to run after deployment but before release. Useful for smoke tests or database consolidation. Similar to an 'init container'
* @param handler the code to execute
*/
void init(InitHandler handler);
}