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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReference(ReferenceBean referenceBean) getBeanNamesByKey(String key) voidinitReferenceBean(ReferenceBean referenceBean) NOTE: This method should only call after all dubbo config beans and all property resolvers is loaded.voidInitialize all reference beans, call at Dubbo startingvoidregisterReferenceKeyAndBeanName(String referenceKey, String referenceBeanNameOrAlias) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Constructor Details
-
ReferenceBeanManager
public ReferenceBeanManager()
-
-
Method Details
-
addReference
- Throws:
Exception
-
registerReferenceKeyAndBeanName
-
getById
-
getBeanNamesByKey
-
getReferences
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
prepareReferenceBeans
Initialize all reference beans, call at Dubbo starting- Throws:
Exception
-
initReferenceBean
NOTE: This method should only call after all dubbo config beans and all property resolvers is loaded.- Parameters:
referenceBean-- Throws:
Exception
-