Annotation Interface DependsOnClass


@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface DependsOnClass
服务依赖的类
Author:
wangliang181230
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    依赖的类名数组(无法引用到类时使用)
    校验策略
    Class<?>[]
    依赖的类数组
  • Element Details

    • value

      Class<?>[] value
      依赖的类数组
      Returns:
      the classes
      Default:
      {}
    • name

      String[] name
      依赖的类名数组(无法引用到类时使用)
      Returns:
      the class names
      Default:
      {}
    • strategy

      校验策略

      注:只针对 name() 有效,因为 value() 中任意一个不存在时,直接抛出异常了,无法校验

      Returns:
      the strategy
      Default:
      ALL