Class ClientFactory
- java.lang.Object
-
- org.camunda.bpm.client.spring.impl.client.ClientFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.camunda.bpm.client.ExternalTaskClient>,org.springframework.beans.factory.InitializingBean
public class ClientFactory extends Object implements org.springframework.beans.factory.FactoryBean<org.camunda.bpm.client.ExternalTaskClient>, org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description protected org.camunda.bpm.client.backoff.BackoffStrategybackoffStrategyprotected org.camunda.bpm.client.ExternalTaskClientclientprotected ClientConfigurationclientConfigurationprotected static ClientLoggerUtilLOGprotected org.springframework.core.env.PropertyResolverpropertyResolverprotected List<org.camunda.bpm.client.interceptor.ClientRequestInterceptor>requestInterceptors
-
Constructor Summary
Constructors Constructor Description ClientFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddClientRequestInterceptors(org.camunda.bpm.client.ExternalTaskClientBuilder taskClientBuilder)voidafterPropertiesSet()protected voidclose()ClientConfigurationgetClientConfiguration()org.camunda.bpm.client.ExternalTaskClientgetObject()Class<org.camunda.bpm.client.ExternalTaskClient>getObjectType()List<org.camunda.bpm.client.interceptor.ClientRequestInterceptor>getRequestInterceptors()booleanisSingleton()protected Stringresolve(String property)voidsetClientBackoffStrategy(org.camunda.bpm.client.backoff.BackoffStrategy backoffStrategy)voidsetClientConfiguration(ClientConfiguration clientConfiguration)protected voidsetPropertyConfigurer(org.springframework.context.support.PropertySourcesPlaceholderConfigurer configurer)voidsetRequestInterceptors(List<org.camunda.bpm.client.interceptor.ClientRequestInterceptor> requestInterceptors)
-
-
-
Field Detail
-
LOG
protected static final ClientLoggerUtil LOG
-
clientConfiguration
protected ClientConfiguration clientConfiguration
-
backoffStrategy
protected org.camunda.bpm.client.backoff.BackoffStrategy backoffStrategy
-
requestInterceptors
protected List<org.camunda.bpm.client.interceptor.ClientRequestInterceptor> requestInterceptors
-
client
protected org.camunda.bpm.client.ExternalTaskClient client
-
propertyResolver
protected org.springframework.core.env.PropertyResolver propertyResolver
-
-
Method Detail
-
getObject
public org.camunda.bpm.client.ExternalTaskClient getObject()
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<org.camunda.bpm.client.ExternalTaskClient>
-
addClientRequestInterceptors
protected void addClientRequestInterceptors(org.camunda.bpm.client.ExternalTaskClientBuilder taskClientBuilder)
-
setRequestInterceptors
@Autowired(required=false) public void setRequestInterceptors(List<org.camunda.bpm.client.interceptor.ClientRequestInterceptor> requestInterceptors)
-
setClientBackoffStrategy
@Autowired(required=false) public void setClientBackoffStrategy(org.camunda.bpm.client.backoff.BackoffStrategy backoffStrategy)
-
getObjectType
public Class<org.camunda.bpm.client.ExternalTaskClient> getObjectType()
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.camunda.bpm.client.ExternalTaskClient>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<org.camunda.bpm.client.ExternalTaskClient>
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getClientConfiguration
public ClientConfiguration getClientConfiguration()
-
setClientConfiguration
public void setClientConfiguration(ClientConfiguration clientConfiguration)
-
getRequestInterceptors
public List<org.camunda.bpm.client.interceptor.ClientRequestInterceptor> getRequestInterceptors()
-
close
protected void close()
-
setPropertyConfigurer
@Autowired(required=false) protected void setPropertyConfigurer(org.springframework.context.support.PropertySourcesPlaceholderConfigurer configurer)
-
-