Class ReferenceBeanManager

java.lang.Object
org.apache.dubbo.config.spring.reference.ReferenceBeanManager
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class ReferenceBeanManager extends Object implements org.springframework.context.ApplicationContextAware
  • Field Details

  • Constructor Details

    • ReferenceBeanManager

      public ReferenceBeanManager()
  • Method Details

    • addReference

      public void addReference(ReferenceBean referenceBean) throws Exception
      Throws:
      Exception
    • registerReferenceKeyAndBeanName

      public void registerReferenceKeyAndBeanName(String referenceKey, String referenceBeanNameOrAlias)
    • getById

      public ReferenceBean getById(String referenceBeanNameOrAlias)
    • getBeanNamesByKey

      public List<String> getBeanNamesByKey(String key)
    • getReferences

      public Collection<ReferenceBean> getReferences()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • prepareReferenceBeans

      public void prepareReferenceBeans() throws Exception
      Initialize all reference beans, call at Dubbo starting
      Throws:
      Exception
    • initReferenceBean

      public void initReferenceBean(ReferenceBean referenceBean) throws Exception
      NOTE: This method should only call after all dubbo config beans and all property resolvers is loaded.
      Parameters:
      referenceBean -
      Throws:
      Exception