Package org.springframework.ldap.test
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
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
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
doCreateInstance
(String dnsName) Implement to create the actual target object.final Class
protected void
setAdditionalContextSourceProperties
(LdapContextSource ctx, String dnsName) Override to set additional properties on the ContextSource.void
void
setPassword
(String password) void
setPooled
(boolean pooled) void
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
-
Constructor Details
-
ContextSourceEc2InstanceLaunchingFactoryBean
public ContextSourceEc2InstanceLaunchingFactoryBean()
-
-
Method Details
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean
- Specified by:
getObjectType
in classorg.springframework.beans.factory.config.AbstractFactoryBean
-
doCreateInstance
Description copied from class:AbstractEc2InstanceLaunchingFactoryBean
Implement to create the actual target object.- Specified by:
doCreateInstance
in classAbstractEc2InstanceLaunchingFactoryBean
- 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
Override to set additional properties on the ContextSource.- Parameters:
ctx
- The created instance.dnsName
- The dns name of the created Ec2 instance.
-
setBase
-
setUserDn
-
setPassword
-