public class DbConfigFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<DbConfig> implements MuleContextAware, Initialisable
PHASE_NAME
Constructor and Description |
---|
DbConfigFactoryBean() |
public Class<?> getObjectType()
protected DbTypeManager doCreateTypeManager()
protected GenericDbConfig doCreateDbConfig(DataSource datasource, DbTypeManager dbTypeManager)
protected void validate()
protected String getEffectiveUrl()
public String getUrl()
public void setUrl(String url)
public String getName()
public void setName(String name)
public void setTransactionIsolation(int transactionIsolation)
public void setconnectionTimeout(int connectionTimeout)
public void setPassword(String password)
public void setUser(String user)
public DataSource getDataSource()
public void setDataSource(DataSource dataSource)
public void setDriverClassName(String driverClassName)
public String getDriverClassName()
public void setConnectionProperties(Map<String,String> connectionProperties)
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public void setUseXaTransactions(boolean useXaTransactions)
public void setPoolingProfile(DbPoolingProfile poolingProfile)
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic RetryPolicyTemplate getRetryPolicyTemplate()
public void setRetryPolicyTemplate(RetryPolicyTemplate retryPolicyTemplate)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.