Class ContextSourceEc2InstanceLaunchingFactoryBean

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean
org.springframework.ldap.test.AbstractEc2InstanceLaunchingFactoryBean
org.springframework.ldap.test.ContextSourceEc2InstanceLaunchingFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

@Deprecated(since="4.2.1", forRemoval=true) public class ContextSourceEc2InstanceLaunchingFactoryBean extends AbstractEc2InstanceLaunchingFactoryBean
Deprecated, for removal: This API element is subject to removal in a future version.
as of 4.2.1 with no replacement in Spring LDAP; use Testcontainers to run a real LDAP server for integration tests. This class is scheduled for removal.
FactoryBean to create a ContextSource using the EC2 instance created by superclass.
  • Field Summary

    Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    logger

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    Implement to create the actual target object.
    final Class
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Override to set additional properties on the ContextSource.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setPassword(String password)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setPooled(boolean pooled)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setUserDn(String userDn)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContextSourceEc2InstanceLaunchingFactoryBean

      public ContextSourceEc2InstanceLaunchingFactoryBean()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getObjectType

      public final Class getObjectType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean
      Specified by:
      getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean
    • doCreateInstance

      protected final Object doCreateInstance(String dnsName) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: AbstractEc2InstanceLaunchingFactoryBean
      Implement to create the actual target object.
      Specified by:
      doCreateInstance in class AbstractEc2InstanceLaunchingFactoryBean
      Parameters:
      dnsName - the ip address of the launched EC2 image.
      Returns:
      the object to be returned by this FactoryBean.
      Throws:
      Exception - if an error occurs during initialization.
    • setPooled

      public void setPooled(boolean pooled)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setAdditionalContextSourceProperties

      protected void setAdditionalContextSourceProperties(LdapContextSource ctx, String dnsName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Override to set additional properties on the ContextSource.
      Parameters:
      ctx - The created instance.
      dnsName - The dns name of the created Ec2 instance.
    • setBase

      public void setBase(String base)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUserDn

      public void setUserDn(String userDn)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPassword

      public void setPassword(String password)
      Deprecated, for removal: This API element is subject to removal in a future version.