com.bazaarvoice.emodb.common.dropwizard.guice.SelfHostAndPort Maven / Gradle / Ivy
package com.bazaarvoice.emodb.common.dropwizard.guice;
import com.google.common.net.HostAndPort;
import com.google.inject.BindingAnnotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Guice binding annotation for identifying the main {@link HostAndPort} for the current server.
*/
@BindingAnnotation
@Target({ FIELD, PARAMETER, METHOD }) @Retention(RUNTIME)
public @interface SelfHostAndPort {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy