io.dropwizard.servlets.tasks.TaskConfiguration Maven / Gradle / Ivy
package io.dropwizard.servlets.tasks;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.StringJoiner;
/**
* A factory for configuring the tasks sub-system for the environment.
*
* Configuration Parameters:
*
*
* Name
* Default
* Description
*
*
* printStackTraceOnError
* {@code false}
* Print the full stack trace when the execution of a task failed.
*
*
*
* @since 2.0
*/
public class TaskConfiguration {
private boolean printStackTraceOnError = false;
@JsonProperty("printStackTraceOnError")
public boolean isPrintStackTraceOnError() {
return printStackTraceOnError;
}
@JsonProperty("printStackTraceOnError")
public void setPrintStackTraceOnError(boolean printStackTraceOnError) {
this.printStackTraceOnError = printStackTraceOnError;
}
@Override
public String toString() {
return new StringJoiner(", ", TaskConfiguration.class.getSimpleName() + "[", "]")
.add("printStackTraceOnError=" + printStackTraceOnError)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy