Class ClientFactory
- java.lang.Object
-
- org.camunda.bpm.client.spring.impl.client.ClientFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<ExternalTaskClient>
,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
PropertiesAwareClientFactory
public class ClientFactory extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<ExternalTaskClient>, org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description protected BackoffStrategy
backoffStrategy
protected ExternalTaskClient
client
protected ClientConfiguration
clientConfiguration
protected static ClientLoggerUtil
LOG
protected org.springframework.core.env.PropertyResolver
propertyResolver
protected java.util.List<ClientRequestInterceptor>
requestInterceptors
-
Constructor Summary
Constructors Constructor Description ClientFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addClientRequestInterceptors(ExternalTaskClientBuilder taskClientBuilder)
void
afterPropertiesSet()
protected void
close()
ClientConfiguration
getClientConfiguration()
ExternalTaskClient
getObject()
java.lang.Class<ExternalTaskClient>
getObjectType()
java.util.List<ClientRequestInterceptor>
getRequestInterceptors()
boolean
isSingleton()
protected java.lang.String
resolve(java.lang.String property)
void
setClientBackoffStrategy(BackoffStrategy backoffStrategy)
void
setClientConfiguration(ClientConfiguration clientConfiguration)
protected void
setPropertyConfigurer(org.springframework.context.support.PropertySourcesPlaceholderConfigurer configurer)
void
setRequestInterceptors(java.util.List<ClientRequestInterceptor> requestInterceptors)
-
-
-
Field Detail
-
LOG
protected static final ClientLoggerUtil LOG
-
clientConfiguration
protected ClientConfiguration clientConfiguration
-
backoffStrategy
protected BackoffStrategy backoffStrategy
-
requestInterceptors
protected java.util.List<ClientRequestInterceptor> requestInterceptors
-
client
protected ExternalTaskClient client
-
propertyResolver
protected org.springframework.core.env.PropertyResolver propertyResolver
-
-
Method Detail
-
getObject
public ExternalTaskClient getObject()
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<ExternalTaskClient>
-
addClientRequestInterceptors
protected void addClientRequestInterceptors(ExternalTaskClientBuilder taskClientBuilder)
-
setRequestInterceptors
@Autowired(required=false) public void setRequestInterceptors(java.util.List<ClientRequestInterceptor> requestInterceptors)
-
setClientBackoffStrategy
@Autowired(required=false) public void setClientBackoffStrategy(BackoffStrategy backoffStrategy)
-
getObjectType
public java.lang.Class<ExternalTaskClient> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<ExternalTaskClient>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<ExternalTaskClient>
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-
getClientConfiguration
public ClientConfiguration getClientConfiguration()
-
setClientConfiguration
public void setClientConfiguration(ClientConfiguration clientConfiguration)
-
getRequestInterceptors
public java.util.List<ClientRequestInterceptor> getRequestInterceptors()
-
close
protected void close()
-
setPropertyConfigurer
@Autowired(required=false) protected void setPropertyConfigurer(org.springframework.context.support.PropertySourcesPlaceholderConfigurer configurer)
-
resolve
protected java.lang.String resolve(java.lang.String property)
-
-