@Component
@DependsOn(value={"pulsarClient","pulsarProperties"})
public class PulsarProducerHandler
extends Object
implements org.springframework.beans.factory.config.BeanPostProcessor
| 构造器和说明 |
|---|
PulsarProducerHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
initProducer(String topic)
init producer
|
Object |
postProcessAfterInitialization(Object bean,
String beanName) |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization 在接口中 org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic void initProducer(String topic)
topic - 主题Copyright © 2021. All rights reserved.