public class

SalesforceModuleConnectionManager

extends Object
implements Capabilities ConnectionManager<K, C> MuleContextAware Initialisable
java.lang.Object
   ↳ org.mule.modules.salesforce.adapters.SalesforceModuleConnectionManager

Class Overview

A SalesforceModuleConnectionManager is a wrapper around SalesforceModule that adds connection management capabilities to the pojo.

Summary

Nested Classes
class SalesforceModuleConnectionManager.ConnectionKey A tuple of connection parameters  
[Expand]
Inherited Constants
From interface org.mule.api.lifecycle.Initialisable
Fields
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
private FlowConstruct flowConstruct Flow construct
private static Logger logger
private MuleContext muleContext Mule Context
private ObjectStore objectStore
private String password
private String proxyHost
private String proxyPassword
private int proxyPort
private String proxyUsername
private String securityToken
private URL url
private String username
Public Constructors
SalesforceModuleConnectionManager()
Public Methods
SalesforceModuleInjectionAdapter acquireConnection(SalesforceModuleConnectionManager.ConnectionKey key)
void destroyConnection(SalesforceModuleConnectionManager.ConnectionKey key, SalesforceModuleInjectionAdapter connection)
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
ObjectStore getObjectStore()
Retrieves objectStore
String getPassword()
Retrieves password
String getProxyHost()
Retrieves proxyHost
String getProxyPassword()
Retrieves proxyPassword
int getProxyPort()
Retrieves proxyPort
String getProxyUsername()
Retrieves proxyUsername
String getSecurityToken()
Retrieves securityToken
URL getUrl()
Retrieves url
String getUsername()
Retrieves username
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(SalesforceModuleConnectionManager.ConnectionKey key, SalesforceModuleInjectionAdapter connection)
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setFlowConstruct(FlowConstruct flowConstruct)
Sets flow construct
void setMuleContext(MuleContext context)
Set the Mule context
void setObjectStore(ObjectStore value)
Sets objectStore
void setPassword(String value)
Sets password
void setProxyHost(String value)
Sets proxyHost
void setProxyPassword(String value)
Sets proxyPassword
void setProxyPort(int value)
Sets proxyPort
void setProxyUsername(String value)
Sets proxyUsername
void setSecurityToken(String value)
Sets securityToken
void setUrl(URL value)
Sets url
void setUsername(String value)
Sets username
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.api.Capabilities
From interface org.mule.api.ConnectionManager
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.lifecycle.Initialisable

Fields

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

private FlowConstruct flowConstruct

Flow construct

private static Logger logger

private MuleContext muleContext

Mule Context

private ObjectStore objectStore

private String password

private String proxyHost

private String proxyPassword

private int proxyPort

private String proxyUsername

private String securityToken

private URL url

private String username

Public Constructors

public SalesforceModuleConnectionManager ()

Public Methods

public SalesforceModuleInjectionAdapter acquireConnection (SalesforceModuleConnectionManager.ConnectionKey key)

Parameters
key
Throws
Exception

public void destroyConnection (SalesforceModuleConnectionManager.ConnectionKey key, SalesforceModuleInjectionAdapter connection)

Parameters
key
connection
Throws
Exception

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

public ObjectStore getObjectStore ()

Retrieves objectStore

public String getPassword ()

Retrieves password

public String getProxyHost ()

Retrieves proxyHost

public String getProxyPassword ()

Retrieves proxyPassword

public int getProxyPort ()

Retrieves proxyPort

public String getProxyUsername ()

Retrieves proxyUsername

public String getSecurityToken ()

Retrieves securityToken

public URL getUrl ()

Retrieves url

public String getUsername ()

Retrieves username

public void initialise ()

public boolean isCapableOf (Capability capability)

Returns true if this module implements such capability

Parameters
capability

public void releaseConnection (SalesforceModuleConnectionManager.ConnectionKey key, SalesforceModuleInjectionAdapter connection)

Parameters
key
connection
Throws
Exception

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setFlowConstruct (FlowConstruct flowConstruct)

Sets flow construct

Parameters
flowConstruct Flow construct to set

public void setMuleContext (MuleContext context)

Set the Mule context

Parameters
context Mule context to set

public void setObjectStore (ObjectStore value)

Sets objectStore

Parameters
value Value to set

public void setPassword (String value)

Sets password

Parameters
value Value to set

public void setProxyHost (String value)

Sets proxyHost

Parameters
value Value to set

public void setProxyPassword (String value)

Sets proxyPassword

Parameters
value Value to set

public void setProxyPort (int value)

Sets proxyPort

Parameters
value Value to set

public void setProxyUsername (String value)

Sets proxyUsername

Parameters
value Value to set

public void setSecurityToken (String value)

Sets securityToken

Parameters
value Value to set

public void setUrl (URL value)

Sets url

Parameters
value Value to set

public void setUsername (String value)

Sets username

Parameters
value Value to set