Class DubboSpringInitCustomizerHolder

java.lang.Object
org.apache.dubbo.config.spring.context.DubboSpringInitCustomizerHolder

public class DubboSpringInitCustomizerHolder extends Object
Hold a set of DubboSpringInitCustomizer, for register customizers by programming.

All customizers are store in thread local, and they will be clear after apply once.

Usages:

 DubboSpringInitCustomizerHolder.get().addCustomizer(context -> {...});
 ClassPathXmlApplicationContext providerContext = new ClassPathXmlApplicationContext(..);
 ...
 DubboSpringInitCustomizerHolder.get().addCustomizer(context -> {...});
 ClassPathXmlApplicationContext consumerContext = new ClassPathXmlApplicationContext(..);