Class 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 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:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • setBeanName

      public void setBeanName(String name)
      Specified by:
      setBeanName in interface org.springframework.beans.factory.BeanNameAware
    • getService

      public org.apache.dubbo.config.annotation.Service getService()
      Gets associated Service
      Returns:
      associated Service
    • afterPropertiesSet

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

      @Parameter(excluded=true, attribute=false) public String getBeanName()
      Get the name of ServiceBean
      Returns:
      ServiceBean's name
      Since:
      2.6.5
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
    • setApplicationEventPublisher

      public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
      Specified by:
      setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware
      Parameters:
      applicationEventPublisher -
      Since:
      2.6.5