com.bazaarvoice.emodb.job.handler.RegistryEntry Maven / Gradle / Ivy
package com.bazaarvoice.emodb.job.handler;
import com.bazaarvoice.emodb.job.api.JobHandler;
import com.bazaarvoice.emodb.job.api.JobType;
import com.google.common.base.Supplier;
import static java.util.Objects.requireNonNull;
public class RegistryEntry {
private final JobType _jobType;
private final Supplier> _handlerSupplier;
public RegistryEntry(JobType jobType, Supplier> handlerSupplier) {
_jobType = requireNonNull(jobType, "jobType");
_handlerSupplier = requireNonNull(handlerSupplier, "handlerSupplier");
}
public JobType getJobType() {
return _jobType;
}
public JobHandler newHandler() {
return _handlerSupplier.get();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy