Class ContainerConnectionDetailsFactory.ContainerConnectionDetails<C extends org.testcontainers.containers.Container<?>>

java.lang.Object
org.springframework.boot.testcontainers.service.connection.ContainerConnectionDetailsFactory.ContainerConnectionDetails<C>
Type Parameters:
C - the container type
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.boot.autoconfigure.service.connection.ConnectionDetails, org.springframework.boot.origin.OriginProvider, org.springframework.context.ApplicationContextAware
Enclosing class:
ContainerConnectionDetailsFactory<C extends org.testcontainers.containers.Container<?>,D extends org.springframework.boot.autoconfigure.service.connection.ConnectionDetails>

protected static class ContainerConnectionDetailsFactory.ContainerConnectionDetails<C extends org.testcontainers.containers.Container<?>> extends Object implements org.springframework.boot.autoconfigure.service.connection.ConnectionDetails, org.springframework.boot.origin.OriginProvider, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Base class for ConnectionDetails results that are backed by a ContainerConnectionSource.
  • Constructor Details

  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getContainer

      protected final C getContainer()
      Return the container that back this connection details instance. This method can only be called once the connection details bean has been initialized.
      Returns:
      the container instance
    • getOrigin

      public org.springframework.boot.origin.Origin getOrigin()
      Specified by:
      getOrigin in interface org.springframework.boot.origin.OriginProvider
    • setApplicationContext

      @Deprecated(since="3.4.0", forRemoval=true) public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException