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
| Constructor and Description |
|---|
ServiceBean() |
ServiceBean(Service service) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
export() |
String |
getBeanName()
Get the name of
ServiceBean |
Service |
getService()
Gets associated
Service |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setBeanName(String name) |
checkAndUpdateSubConfigs, getDelay, getExport, getExportedUrls, getGeneric, getInterface, getInterfaceClass, getMethods, getPath, getPrefix, getProvider, getProviderIds, getProviders, getRef, isExported, isUnexported, setGeneric, setInterface, setInterface, setInterfaceClass, setMethods, setMock, setMock, setPath, setProvider, setProviderIds, setProviders, setRef, toUrl, toUrls, unexportgetAccesslog, getDocument, getExecutes, getFilter, getGroup, getListener, getProtocol, getProtocolIds, getProtocols, getSerialization, getToken, getVersion, getWarmup, getWeight, isDeprecated, isDynamic, isRegister, setAccesslog, setAccesslog, setDelay, setDeprecated, setDocument, setDynamic, setExecutes, setExport, setGroup, setListener, setProtocol, setProtocolIds, setProtocols, setRegister, setSerialization, setToken, setToken, setVersion, setWarmup, setWeightgetApplication, getCallbacks, getCluster, getConfigCenter, getConnections, getLayer, getLocal, getMetadataReportConfig, getMetrics, getModule, getMonitor, getOnconnect, getOndisconnect, getOwner, getProxy, getRegistries, getRegistry, getRegistryIds, getScope, getStub, getTag, setApplication, setCallbacks, setCluster, setConfigCenter, setConnections, setFilter, setLayer, setLocal, setLocal, setMetadataReportConfig, setMetrics, setModule, setMonitor, setMonitor, setOnconnect, setOndisconnect, setOwner, setProxy, setRegistries, setRegistry, setRegistryIds, setScope, setStub, setStub, setTaggetActives, getCache, getForks, getLoadbalance, getMerger, getMock, getParameters, getRetries, getSent, getTimeout, getValidation, isAsync, setActives, setAsync, setCache, setForks, setLoadbalance, setMerger, setParameters, setRetries, setSent, setTimeout, setValidationequals, getId, getMetaData, isValid, refresh, setId, setPrefix, toString, updateIdIfAbsentpublic ServiceBean()
public ServiceBean(Service service)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic String getBeanName()
ServiceBeanServiceBean's namepublic void export()
export in class ServiceConfig<T>public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwareapplicationEventPublisher - Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.