类 ContainerConnectionSource<C extends org.testcontainers.containers.Container<?>>

java.lang.Object
org.springframework.boot.testcontainers.service.connection.ContainerConnectionSource<C>
类型参数:
C - the generic container type
所有已实现的接口:
OriginProvider

public final class ContainerConnectionSource<C extends org.testcontainers.containers.Container<?>> extends Object implements OriginProvider
Passed to ContainerConnectionDetailsFactory to provide details of the @ServiceConnection annotated Container that provides the service.
从以下版本开始:
3.1.0
作者:
Moritz Halbritter, Andy Wilkinson, Phillip Webb
另请参阅:
  • 方法详细资料

    • accepts

      public boolean accepts(String requiredConnectionName, Class<?> requiredContainerType, Class<?> requiredConnectionDetailsType)
      Return if this source accepts the given connection.
      参数:
      requiredConnectionName - the required connection name or null
      requiredContainerType - the required container type
      requiredConnectionDetailsType - the required connection details type
      返回:
      if the connection is accepted by this source
      从以下版本开始:
      3.4.0
    • getOrigin

      public Origin getOrigin()
      从接口复制的说明: OriginProvider
      Return the source origin or null if the origin is not known.
      指定者:
      getOrigin 在接口中 OriginProvider
      返回:
      the origin or null
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object