类 DictHandler

java.lang.Object
cn.iosd.starter.dict.handler.DictHandler

@Component @ConditionalOnProperty(name="simple.dict.enabled", havingValue="true", matchIfMissing=true) public class DictHandler extends Object
作者:
ok1996
  • 构造器详细资料

    • DictHandler

      public DictHandler()
  • 方法详细资料

    • getDictServiceByClass

      public DictService getDictServiceByClass(Class<? extends DictService> dictClass)
      根据字典服务泛型获取对应的字典服务
      优先级1:注解 @DictField 配置值 dictImplClass
      优先级2:代码中服务类@Order优先顺序第一的服务类
      参数:
      dictClass - 字典服务实现类
      返回:
      字典服务
    • translateDict

      public Object translateDict(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      抛出:
      Throwable