类 ContainerConnectionDetailsFactory.ContainerConnectionDetails<C extends org.testcontainers.containers.Container<?>>
java.lang.Object
org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory.ContainerConnectionDetails<C>
- 类型参数:
C
- the container type
- 封闭类:
ContainerConnectionDetailsFactory<C extends org.testcontainers.containers.Container<?>,
D extends ConnectionDetails>
protected static class ContainerConnectionDetailsFactory.ContainerConnectionDetails<C extends org.testcontainers.containers.Container<?>>
extends Object
implements ConnectionDetails, OriginProvider, InitializingBean, ApplicationContextAware
Base class for
ConnectionDetails
results that are backed by a
ContainerConnectionSource
.-
构造器概要
构造器限定符构造器说明protected
Create a newContainerConnectionDetailsFactory.ContainerConnectionDetails
instance. -
方法概要
修饰符和类型方法说明void
protected final C
Return the container that back this connection details instance.Return the source origin ornull
if the origin is not known.protected SslBundle
Return theSslBundle
to use with this connection ornull
.protected boolean
hasAnnotation
(Class<? extends Annotation> annotationType) Whether the field or bean is annotated with the given annotation.void
setApplicationContext
(ApplicationContext applicationContext) 已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
构造器详细资料
-
ContainerConnectionDetails
Create a newContainerConnectionDetailsFactory.ContainerConnectionDetails
instance.- 参数:
source
- the sourceContainerConnectionSource
-
-
方法详细资料
-
afterPropertiesSet
- 指定者:
afterPropertiesSet
在接口中InitializingBean
- 抛出:
Exception
-
getContainer
Return the container that back this connection details instance. This method can only be called once the connection details bean has been initialized.- 返回:
- the container instance
-
getSslBundle
Return theSslBundle
to use with this connection ornull
.- 返回:
- the ssl bundle or
null
- 从以下版本开始:
- 3.5.0
-
hasAnnotation
Whether the field or bean is annotated with the given annotation.- 参数:
annotationType
- the annotation to check- 返回:
- whether the field or bean is annotated with the annotation
- 从以下版本开始:
- 3.5.0
-
getOrigin
从接口复制的说明:OriginProvider
Return the source origin ornull
if the origin is not known.- 指定者:
getOrigin
在接口中OriginProvider
- 返回:
- the origin or
null
-
setApplicationContext
@Deprecated(since="3.4.0", forRemoval=true) public void setApplicationContext(ApplicationContext applicationContext) throws BeansException 已过时, 待删除: 此 API 元素将从以后的版本中删除。- 指定者:
setApplicationContext
在接口中ApplicationContextAware
- 抛出:
BeansException
-