类 ServiceBean<T>
- java.lang.Object
-
- com.alibaba.dubbo.config.AbstractConfig
-
- com.alibaba.dubbo.config.AbstractMethodConfig
-
- com.alibaba.dubbo.config.AbstractInterfaceConfig
-
- com.alibaba.dubbo.config.AbstractServiceConfig
-
- com.alibaba.dubbo.config.ServiceConfig<T>
-
- com.alibaba.dubbo.config.spring.ServiceBean<T>
-
- 所有已实现的接口:
Serializable,EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationEventPublisherAware,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
public class ServiceBean<T> extends ServiceConfig<T> implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationEventPublisherAware
ServiceFactoryBean- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 ServiceBean()ServiceBean(Service service)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterPropertiesSet()voiddestroy()voidexport()StringgetBeanName()Get the name ofServiceBeanServicegetService()Gets associatedServicevoidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)voidsetBeanName(String name)-
从类继承的方法 com.alibaba.dubbo.config.ServiceConfig
getExportedUrls, getGeneric, getGroup, getInterface, getInterfaceClass, getMethods, getPath, getProvider, getProviders, getRef, getUniqueServiceName, getVersion, isExported, isUnexported, setGeneric, setInterface, setInterface, setInterfaceClass, setMethods, setMock, setMock, setPath, setProvider, setProviders, setRef, toUrl, toUrls, unexport
-
从类继承的方法 com.alibaba.dubbo.config.AbstractServiceConfig
getAccesslog, getDelay, getDocument, getExecutes, getExport, getFilter, getListener, getProtocol, getProtocols, getSerialization, getTag, getToken, getWarmup, getWeight, isDeprecated, isDynamic, isRegister, setAccesslog, setAccesslog, setDelay, setDeprecated, setDocument, setDynamic, setExecutes, setExport, setGroup, setListener, setProtocol, setProtocols, setRegister, setSerialization, setTag, setToken, setToken, setVersion, setWarmup, setWeight
-
从类继承的方法 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, setOnconnect, setOndisconnect, setOwner, setProxy, setRegistries, setRegistry, setScope, setStub, setStub
-
从类继承的方法 com.alibaba.dubbo.config.AbstractMethodConfig
getActives, getCache, getForks, getLoadbalance, getMerger, getMock, getParameters, getRetries, getSent, getTimeout, getValidation, isAsync, setActives, setAsync, setCache, setForks, setLoadbalance, setMerger, setParameters, setRetries, setSent, setTimeout, setValidation
-
从类继承的方法 com.alibaba.dubbo.config.AbstractConfig
getId, setId, toString
-
-
-
-
构造器详细资料
-
ServiceBean
public ServiceBean()
-
ServiceBean
public ServiceBean(Service service)
-
-
方法详细资料
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware
-
setBeanName
public void setBeanName(String name)
- 指定者:
setBeanName在接口中org.springframework.beans.factory.BeanNameAware
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
- 指定者:
onApplicationEvent在接口中org.springframework.context.ApplicationListener<T>
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- 指定者:
afterPropertiesSet在接口中org.springframework.beans.factory.InitializingBean- 抛出:
Exception
-
getBeanName
public String getBeanName()
Get the name ofServiceBean- 返回:
ServiceBean's name- 从以下版本开始:
- 2.6.5
-
export
public void export()
- 覆盖:
export在类中ServiceConfig<T>- 从以下版本开始:
- 2.6.5
-
destroy
public void destroy() throws Exception- 指定者:
destroy在接口中org.springframework.beans.factory.DisposableBean- 抛出:
Exception
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
- 指定者:
setApplicationEventPublisher在接口中org.springframework.context.ApplicationEventPublisherAware- 参数:
applicationEventPublisher-- 从以下版本开始:
- 2.6.5
-
-