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

me.bazhenov.docker.ContainerPort Maven / Gradle / Ivy

There is a newer version: 1.6.2
Show newest version
package me.bazhenov.docker;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * This annotation is used in pair with {@link AfterContainerStart}.
 *
 * @see AfterContainerStart @AfterContainerStart for more information
 */
@SuppressWarnings("WeakerAccess")
@Target(PARAMETER)
@Retention(RUNTIME)
public @interface ContainerPort {

	/**
	 * @return name of references container given in {@link Container#name()}
	 */
	String name();

	/**
	 * @return port number given in {@link Container#publish()}
	 */
	int port();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy