Class 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

    public class ContextSourceEc2InstanceLaunchingFactoryBean
    extends AbstractEc2InstanceLaunchingFactoryBean
    FactoryBean to create a ContextSource using the EC2 instance created by superclass.
    • Constructor Detail

      • ContextSourceEc2InstanceLaunchingFactoryBean

        public ContextSourceEc2InstanceLaunchingFactoryBean()
    • Method Detail

      • getObjectType

        public final java.lang.Class getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean
        Specified by:
        getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean
      • doCreateInstance

        protected final java.lang.Object doCreateInstance​(java.lang.String dnsName)
                                                   throws java.lang.Exception
        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:
        java.lang.Exception - if an error occurs during initialization.
      • setPooled

        public void setPooled​(boolean pooled)
      • setAdditionalContextSourceProperties

        protected void setAdditionalContextSourceProperties​(LdapContextSource ctx,
                                                            java.lang.String dnsName)
        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​(java.lang.String base)
      • setUserDn

        public void setUserDn​(java.lang.String userDn)
      • setPassword

        public void setPassword​(java.lang.String password)