类 NkAbstractCloudService<T>

java.lang.Object
cn.nkpro.elcube.cloud.NkAbstractCloudService<T>
类型参数:
T -
所有已实现的接口:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware

public abstract class NkAbstractCloudService<T> extends Object implements org.springframework.beans.factory.BeanFactoryAware
抽象的云服务工具类 作用如下: 通过指定的dubbo group来获取对应的远程服务 特殊情况: 如果目标组为空,使用本地服务 如果当前组为空,使用本地服务 如果目标同本地,使用本地服务
  • 字段详细资料

    • cloudProperties

      @Autowired protected NkCloudProperties cloudProperties
      当前服务所在的生产者组
    • iddsClient

      @Autowired(required=false) protected NkCloudIddsClient iddsClient
  • 构造器详细资料

    • NkAbstractCloudService

      public NkAbstractCloudService()
  • 方法详细资料

    • targetType

      protected abstract Class<T> targetType()
    • local

      protected T local()
    • remote

      protected T remote(String group)
    • switchTarget

      protected T switchTarget(String key)
      通过标识位查找对应的,查找对应的生产者
    • clearSymbol

      protected String clearSymbol(String key)
    • throwErrorIfRemote

      protected void throwErrorIfRemote(String key)
    • setBeanFactory

      public void setBeanFactory(@NotNull @NotNull org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      指定者:
      setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAware
      抛出:
      org.springframework.beans.BeansException