Spring LDAP Framework

org.springframework.ldap.test
Class ContextSourceEc2InstanceLaunchingFactoryBean

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

public class ContextSourceEc2InstanceLaunchingFactoryBean
extends AbstractEc2InstanceLaunchingFactoryBean

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
 
Constructor Summary
ContextSourceEc2InstanceLaunchingFactoryBean()
           
 
Method Summary
protected  Object doCreateInstance(String dnsName)
          Implement to create the actual target object.
 Class getObjectType()
           
protected  void setAdditionalContextSourceProperties(LdapContextSource ctx, String dnsName)
          Override to set additional properties on the ContextSource.
 void setBase(String base)
           
 void setPassword(String password)
           
 void setPooled(boolean pooled)
           
 void setUserDn(String userDn)
           
 
Methods inherited from class org.springframework.ldap.test.AbstractEc2InstanceLaunchingFactoryBean
createInstance, destroyInstance, setAwsKey, setAwsSecretKey, setGroupName, setImageName, setKeypairName
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextSourceEc2InstanceLaunchingFactoryBean

public ContextSourceEc2InstanceLaunchingFactoryBean()
Method Detail

getObjectType

public final Class getObjectType()
Specified by:
getObjectType in interface FactoryBean
Specified by:
getObjectType in class AbstractFactoryBean

doCreateInstance

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

setPooled

public void setPooled(boolean pooled)

setAdditionalContextSourceProperties

protected void setAdditionalContextSourceProperties(LdapContextSource ctx,
                                                    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(String base)

setUserDn

public void setUserDn(String userDn)

setPassword

public void setPassword(String password)

Spring LDAP Framework

Copyright © 2005-2010 The Spring LDAP Framework. All Rights Reserved.