类 ServiceBean<T>
- java.lang.Object
-
- org.apache.dubbo.config.AbstractConfig
-
- org.apache.dubbo.config.AbstractMethodConfig
-
- org.apache.dubbo.config.AbstractInterfaceConfig
-
- org.apache.dubbo.config.AbstractServiceConfig
-
- org.apache.dubbo.config.ServiceConfigBase<T>
-
- org.apache.dubbo.config.ServiceConfig<T>
-
- org.apache.dubbo.config.spring.ServiceBean<T>
-
- 所有已实现的接口:
Serializable,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
public class ServiceBean<T> extends ServiceConfig<T> implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationEventPublisherAware
ServiceFactoryBean- 另请参阅:
- 序列化表格
-
-
字段概要
-
从类继承的字段 org.apache.dubbo.config.ServiceConfig
logger
-
-
构造器概要
构造器 构造器 说明 ServiceBean()ServiceBean(org.apache.dubbo.config.annotation.Service service)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterPropertiesSet()voiddestroy()voidexported()StringgetBeanName()Get the name ofServiceBeanorg.apache.dubbo.config.annotation.ServicegetService()Gets associatedServicevoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)voidsetBeanName(String name)-
从类继承的方法 org.apache.dubbo.config.ServiceConfig
export, getBootstrap, getServiceName, isExported, isUnexported, setBootstrap, unexport
-
从类继承的方法 org.apache.dubbo.config.ServiceConfigBase
checkDefault, checkProtocol, checkRef, completeCompoundConfigs, getContextPath, getDelay, getExport, getGeneric, getGroup, getInterfaceClass, getPath, getPrefix, getProvider, getProviderIds, getProviders, getRef, getServiceMetadata, getUniqueServiceName, getVersion, setGeneric, setInterface, setInterfaceClass, setPath, setProvider, setProviderIds, setProviders, setRef, shouldDelay, shouldExport
-
从类继承的方法 org.apache.dubbo.config.AbstractServiceConfig
getAccesslog, getDocument, getExecutes, getFilter, getListener, getProtocol, getProtocolIds, getProtocols, getSerialization, getToken, getWarmup, getWeight, isDeprecated, isDynamic, isRegister, setAccesslog, setAccesslog, setDelay, setDeprecated, setDocument, setDynamic, setExecutes, setExport, setGroup, setListener, setProtocol, setProtocolIds, setProtocols, setRegister, setSerialization, setToken, setToken, setVersion, setWarmup, setWeight
-
从类继承的方法 org.apache.dubbo.config.AbstractInterfaceConfig
appendRuntimeParameters, checkInterfaceAndMethods, checkRegistry, checkStubAndLocal, completeCompoundConfigs, getApplication, getAuth, getCallbacks, getCluster, getConfigCenter, getConnections, getExportedUrls, getGroup, getInterface, getLayer, getLocal, getMetadataReportConfig, getMethods, getMetrics, getModule, getMonitor, getOnconnect, getOndisconnect, getOwner, getProxy, getRegistries, getRegistry, getRegistryIds, getScope, getSslConfig, getStub, getTag, getVersion, initServiceMetadata, setApplication, setAuth, setCallbacks, setCluster, setConfigCenter, setConnections, setFilter, setInterface, setLayer, setLocal, setLocal, setMetadataReportConfig, setMethods, setMetrics, setModule, setMonitor, setMonitor, setOnconnect, setOndisconnect, setOwner, setProxy, setRegistries, setRegistry, setRegistryIds, setScope, setStub, setStub, setTag, toUrl, toUrls, verifyStubAndLocal
-
从类继承的方法 org.apache.dubbo.config.AbstractMethodConfig
getActives, getCache, getForks, getLoadbalance, getMerger, getMock, getParameters, getRetries, getSent, getTimeout, getValidation, isAsync, setActives, setAsync, setCache, setForks, setLoadbalance, setMerger, setMock, setMock, setParameters, setRetries, setSent, setTimeout, setValidation
-
从类继承的方法 org.apache.dubbo.config.AbstractConfig
addIntoConfigManager, appendParameters, appendParameters, equals, getId, getMetaData, getTagName, hashCode, isDefault, isValid, refresh, setDefault, setId, setPrefix, toString, updateIdIfAbsent
-
-
-
-
方法详细资料
-
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
-
getService
public org.apache.dubbo.config.annotation.Service getService()
Gets associatedService- 返回:
- associated
Service
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- 指定者:
afterPropertiesSet在接口中org.springframework.beans.factory.InitializingBean- 抛出:
Exception
-
getBeanName
@Parameter(excluded=true) public String getBeanName()
Get the name ofServiceBean- 返回:
ServiceBean's name- 从以下版本开始:
- 2.6.5
-
exported
public void exported()
- 覆盖:
exported在类中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
-
-