sirius.biz.jobs.system.TestJob Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sirius-biz Show documentation
Show all versions of sirius-biz Show documentation
Provides a framework for building web based business applications
/*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - [email protected]
*/
package sirius.biz.jobs.system;
import sirius.biz.jobs.JobParameterDescription;
import sirius.kernel.commons.Context;
import sirius.kernel.di.std.Register;
import sirius.web.tasks.ManagedTaskContext;
import javax.annotation.Nonnull;
import java.util.function.Consumer;
/**
* Created by aha on 22.07.16.
*/
@Register(classes = SystemJobDescription.class)
public class TestJob extends SystemJobDescription {
@Override
public void collectParameters(Consumer parameterCollector) {
}
@Override
public boolean verifyParameters(Context parameters) {
return true;
}
@Override
public void execute(Context parameters, ManagedTaskContext task) {
task.log("Hello");
}
@Nonnull
@Override
public String getName() {
return "test";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy