Class ServiceBeanIdConflictProcessor

java.lang.Object
org.apache.dubbo.spring.boot.config.ServiceBeanIdConflictProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

public class ServiceBeanIdConflictProcessor extends Object implements org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor, org.springframework.beans.factory.DisposableBean, org.springframework.core.PriorityOrdered
Deprecated.
The post-processor for resolving the id conflict of ServiceBean when an interface is implemented by multiple services with different groups or versions that are exported on one provider

Current implementation is a temporary resolution, and will be removed in the future.

Since:
2.7.7
See Also:
  • CommonAnnotationBeanPostProcessor
  • Constructor Details

    • ServiceBeanIdConflictProcessor

      public ServiceBeanIdConflictProcessor()
      Deprecated.
  • Method Details

    • postProcessMergedBeanDefinition

      public void postProcessMergedBeanDefinition(org.springframework.beans.factory.support.RootBeanDefinition beanDefinition, Class<?> beanType, String beanName)
      Deprecated.
      Specified by:
      postProcessMergedBeanDefinition in interface org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor
    • postProcessBeforeInitialization

      public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Deprecated.
      Specified by:
      postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Deprecated.
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • getOrder

      public int getOrder()
      Deprecated.
      Keep the order being higher than InitDestroyAnnotationBeanPostProcessor.getOrder() that is Ordered.LOWEST_PRECEDENCE
      Specified by:
      getOrder in interface org.springframework.core.Ordered
      Returns:
      Ordered.LOWEST_PRECEDENCE +1
    • destroy

      public void destroy() throws Exception
      Deprecated.
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception