Package org.apache.dubbo.config.spring
Class 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>
- All Implemented Interfaces:
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServiceBean(org.apache.dubbo.rpc.model.ModuleModel moduleModel) ServiceBean(org.springframework.context.ApplicationContext applicationContext) ServiceBean(org.springframework.context.ApplicationContext applicationContext, org.apache.dubbo.config.annotation.Service service) ServiceBean(org.springframework.context.ApplicationContext applicationContext, org.apache.dubbo.rpc.model.ModuleModel moduleModel) ServiceBean(org.springframework.context.ApplicationContext applicationContext, org.apache.dubbo.rpc.model.ModuleModel moduleModel, org.apache.dubbo.config.annotation.Service service) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()Get the name ofServiceBeanorg.apache.dubbo.config.annotation.ServiceGets associatedServicevoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) voidsetBeanName(String name) Methods inherited from class org.apache.dubbo.config.ServiceConfig
addServiceListener, export, getDestroyRunner, hasRegistrySpecified, init, isExported, isUnexported, register, unexportMethods inherited from class org.apache.dubbo.config.ServiceConfigBase
checkInterface, export, getContextPath, getDelay, getExport, getGeneric, getGroup, getInterfaceClass, getMetaData, getMetaData, getPath, getPrefixes, getProvider, getProviderIds, getRef, getServiceMetadata, getUniqueServiceName, getVersion, register, setGeneric, setInterface, setInterfaceClass, setPath, setProtocols, setProvider, setProviderIds, setRef, shouldDelay, shouldExport, shouldExportAsyncMethods inherited from class org.apache.dubbo.config.AbstractServiceConfig
getAccesslog, getDocument, getExecutes, getExecutor, getExportAsync, getFilter, getListener, getPayload, getPreferSerialization, getProtocol, getProtocolIds, getProtocols, getSerialization, getToken, getUseJavaPackageAsPath, getWarmup, getWeight, isDeprecated, isDynamic, isRegister, setAccesslog, setAccesslog, setDelay, setDeprecated, setDocument, setDynamic, setExecutes, setExecutor, setExport, setExportAsync, setGroup, setListener, setPayload, setPreferSerialization, setProtocol, setProtocolIds, setRegister, setSerialization, setToken, setToken, setUseJavaPackageAsPath, setVersion, setWarmup, setWeightMethods inherited from class org.apache.dubbo.config.AbstractInterfaceConfig
addMethod, appendRuntimeParameters, getApplication, getAuth, getAuthenticator, getCallbacks, getCluster, getConfigCenter, getConnections, getExportedUrls, getGroup, getInterface, getInterfaceClassLoader, getLayer, getLocal, getMetadataReportConfig, getMethods, getModule, getMonitor, getOnconnect, getOndisconnect, getOwner, getPassword, getProxy, getRegistries, getRegistry, getRegistryIds, getScope, getSingleton, getSslConfig, getStub, getTag, getUsername, getVersion, setApplication, setAuth, setAuthenticator, setCallbacks, setCluster, setConfigCenter, setConnections, setFilter, setInterface, setInterfaceClassLoader, setLayer, setLocal, setLocal, setMetadataReportConfig, setMethods, setMethodsJson, setModule, setMonitor, setMonitor, setOnconnect, setOndisconnect, setOwner, setPassword, setProxy, setRegistries, setRegistry, setRegistryIds, setScope, setSingleton, setStub, setStub, setTag, setUsername, toUrl, toUrlsMethods inherited from class org.apache.dubbo.config.AbstractMethodConfig
getActives, getCache, getForks, getLoadbalance, getMerger, getMock, getParameters, getRetries, getScopeModel, getSent, getTimeout, getValidation, isAsync, setActives, setAsync, setCache, setForks, setLoadbalance, setMerger, setMock, setMock, setParameters, setRetries, setSent, setTimeout, setValidationMethods inherited from class org.apache.dubbo.config.AbstractConfig
appendAttributes, appendAttributes, appendParameters, appendParameters, equals, getApplicationModel, getConfigMode, getId, getPluralTagName, getTagName, getTypePrefix, hashCode, isDefault, isNeedRefresh, isRefreshed, isValid, overrideWithConfig, refresh, setDefault, setId, setNeedRefresh, setScopeModel, toString
-
Constructor Details
-
ServiceBean
@Autowired public ServiceBean(org.apache.dubbo.rpc.model.ModuleModel moduleModel) -
ServiceBean
public ServiceBean(org.springframework.context.ApplicationContext applicationContext) -
ServiceBean
public ServiceBean(org.springframework.context.ApplicationContext applicationContext, org.apache.dubbo.rpc.model.ModuleModel moduleModel) -
ServiceBean
public ServiceBean(org.springframework.context.ApplicationContext applicationContext, org.apache.dubbo.config.annotation.Service service) -
ServiceBean
public ServiceBean(org.springframework.context.ApplicationContext applicationContext, org.apache.dubbo.rpc.model.ModuleModel moduleModel, org.apache.dubbo.config.annotation.Service service)
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
setBeanName
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
getService
public org.apache.dubbo.config.annotation.Service getService()Gets associatedService- Returns:
- associated
Service
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getBeanName
Get the name ofServiceBean- Returns:
ServiceBean's name- Since:
- 2.6.5
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) - Specified by:
setApplicationEventPublisherin interfaceorg.springframework.context.ApplicationEventPublisherAware- Parameters:
applicationEventPublisher-- Since:
- 2.6.5
-