Class ContainerConnectionDetailsFactory.ContainerConnectionDetails
java.lang.Object
org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory.ContainerConnectionDetails
- All Implemented Interfaces:
ConnectionDetails
,OriginProvider
- Enclosing class:
- ContainerConnectionDetailsFactory<D extends ConnectionDetails,
C extends org.testcontainers.containers.Container<?>>
protected static class ContainerConnectionDetailsFactory.ContainerConnectionDetails
extends Object
implements ConnectionDetails, OriginProvider
Convenient base class for
ConnectionDetails
results that are backed by a
ContainerConnectionSource
.-
Constructor Summary
ModifierConstructorDescriptionprotected
Create a newContainerConnectionDetailsFactory.ContainerConnectionDetails
instance. -
Method Summary
-
Constructor Details
-
ContainerConnectionDetails
Create a newContainerConnectionDetailsFactory.ContainerConnectionDetails
instance.- Parameters:
source
- the sourceContainerConnectionSource
-
-
Method Details
-
getOrigin
Description copied from interface:OriginProvider
Return the source origin ornull
if the origin is not known.- Specified by:
getOrigin
in interfaceOriginProvider
- Returns:
- the origin or
null
-