All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zone.dragon.dropwizard.task.InjectableTask Maven / Gradle / Ivy

Go to download

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