zone.dragon.dropwizard.task.InjectableTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-hk2 Show documentation
Show all versions of dropwizard-hk2 Show documentation
Adds support for Health Checks, LifeCycles, Metrics, and Tasks to be injected by HK2
The newest version!
package zone.dragon.dropwizard.task;
import io.dropwizard.servlets.tasks.Task;
import org.glassfish.jersey.spi.Contract;
import javax.inject.Singleton;
/**
* Marker class to tag a {@link io.dropwizard.servlets.tasks.Task} as a Jersey component; Extend this instead of the standard {@link
* io.dropwizard.servlets.tasks.Task} to allow registration of the component with Jersey.
*/
@Contract
@Singleton
public abstract class InjectableTask extends Task {
protected InjectableTask(String name) {
super(name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy