com.alibaba.dubbo.config.spring
Class ReferenceBean<T>

java.lang.Object
  extended by com.alibaba.dubbo.config.AbstractConfig
      extended by com.alibaba.dubbo.config.AbstractMethodConfig
          extended by com.alibaba.dubbo.config.AbstractInterfaceConfig
              extended by com.alibaba.dubbo.config.AbstractReferenceConfig
                  extended by com.alibaba.dubbo.config.ReferenceConfig<T>
                      extended by com.alibaba.dubbo.config.spring.ReferenceBean<T>
All Implemented Interfaces:
Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class ReferenceBean<T>
extends ReferenceConfig<T>
implements org.springframework.beans.factory.FactoryBean, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

ReferenceFactoryBean

Author:
william.liangf
See Also:
Serialized Form

Constructor Summary
ReferenceBean()
           
ReferenceBean(Reference reference)
           
 
Method Summary
 void afterPropertiesSet()
           
 Object getObject()
           
 Class<?> getObjectType()
           
 boolean isSingleton()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class com.alibaba.dubbo.config.ReferenceConfig
destroy, get, getClient, getConsumer, getInterface, getInterfaceClass, getMethods, getProtocol, getUrl, setClient, setConsumer, setInterface, setInterface, setInterfaceClass, setMethods, setProtocol, setUrl, toUrl, toUrls
 
Methods inherited from class com.alibaba.dubbo.config.AbstractReferenceConfig
getFilter, getGeneric, getGroup, getLazy, getListener, getReconnect, getSticky, getStubevent, getVersion, isCheck, isGeneric, isInit, isInjvm, setCheck, setGeneric, setGeneric, setGroup, setInit, setInjvm, setLazy, setListener, setOnconnect, setOndisconnect, setReconnect, setSticky, setVersion
 
Methods inherited from class com.alibaba.dubbo.config.AbstractInterfaceConfig
getApplication, getCallbacks, getCluster, getConnections, getLayer, getLocal, getModule, getMonitor, getOnconnect, getOndisconnect, getOwner, getProxy, getRegistries, getRegistry, getScope, getStub, setApplication, setCallbacks, setCluster, setConnections, setFilter, setLayer, setLocal, setLocal, setModule, setMonitor, setMonitor, setOwner, setProxy, setRegistries, setRegistry, setScope, setStub, setStub
 
Methods inherited from class com.alibaba.dubbo.config.AbstractMethodConfig
getActives, getCache, getLoadbalance, getMerger, getMock, getParameters, getRetries, getSent, getTimeout, getValidation, isAsync, setActives, setAsync, setCache, setLoadbalance, setMerger, setMock, setMock, setParameters, setRetries, setSent, setTimeout, setValidation
 
Methods inherited from class com.alibaba.dubbo.config.AbstractConfig
getId, setId, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
 

Constructor Detail

ReferenceBean

public ReferenceBean()

ReferenceBean

public ReferenceBean(Reference reference)
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

@Parameter(excluded=true)
public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2012–2017 Alibaba. All rights reserved.