Class PulsarClientFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<org.apache.pulsar.client.api.PulsarClient>
org.springframework.pulsar.config.PulsarClientFactoryBean
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<org.apache.pulsar.client.api.PulsarClient>
,InitializingBean
public class PulsarClientFactoryBean
extends AbstractFactoryBean<org.apache.pulsar.client.api.PulsarClient>
FactoryBean
implementation for the PulsarClient
.- Author:
- Soby Chacko, Chris Bono
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionPulsarClientFactoryBean
(PulsarClientConfiguration pulsarClientConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.pulsar.client.api.PulsarClient
protected void
destroyInstance
(org.apache.pulsar.client.api.PulsarClient instance) Class<?>
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
PulsarClientFactoryBean
-
-
Method Details
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<org.apache.pulsar.client.api.PulsarClient>
- Specified by:
getObjectType
in classAbstractFactoryBean<org.apache.pulsar.client.api.PulsarClient>
-
createInstance
- Specified by:
createInstance
in classAbstractFactoryBean<org.apache.pulsar.client.api.PulsarClient>
- Throws:
Exception
-
destroyInstance
protected void destroyInstance(@Nullable org.apache.pulsar.client.api.PulsarClient instance) throws Exception - Overrides:
destroyInstance
in classAbstractFactoryBean<org.apache.pulsar.client.api.PulsarClient>
- Throws:
Exception
-