org.springframework.context.annotation.Import.value()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(256)

本文整理了Java中org.springframework.context.annotation.Import.value()方法的一些代码示例,展示了Import.value()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Import.value()方法的具体详情如下:
包路径:org.springframework.context.annotation.Import
类名称:Import
方法名:value

Import.value介绍

暂无

代码示例

代码示例来源:origin: org.springframework.boot/spring-boot-test

private Class<?>[] getImports(Annotation annotation) {
  if (annotation instanceof Import) {
    return ((Import) annotation).value();
  }
  return NO_IMPORTS;
}

代码示例来源:origin: io.gravitee.am.gateway.certificate/gravitee-am-gateway-certificate

final Import annImport = certificateClass.getAnnotation(Import.class);
Set<Class<?>> configurations = (annImport != null) ?
    new HashSet<>(Arrays.asList(annImport.value())) : Collections.emptySet();

代码示例来源:origin: io.gravitee.am.plugins.handlers/gravitee-am-plugins-handlers-extensiongrant

final Import annImport = extensionGrantClass.getAnnotation(Import.class);
Set<Class<?>> configurations = (annImport != null) ?
    new HashSet<>(Arrays.asList(annImport.value())) : Collections.emptySet();

代码示例来源:origin: io.gravitee.am.gateway.extensiongrant/gravitee-am-gateway-extensiongrant

final Import annImport = extensionGrantClass.getAnnotation(Import.class);
Set<Class<?>> configurations = (annImport != null) ?
    new HashSet<>(Arrays.asList(annImport.value())) : Collections.emptySet();

代码示例来源:origin: io.gravitee.management.idp/gravitee-management-api-idp-core

final Import annImport = identityClass.getAnnotation(Import.class);
Set<Class<?>> configurations = (annImport != null) ?
    new HashSet<>(Arrays.asList(annImport.value())) : Collections.emptySet();

代码示例来源:origin: gravitee-io/graviteeio-access-management

final Import annImport = extensionGrantClass.getAnnotation(Import.class);
Set<Class<?>> configurations = (annImport != null) ?
    new HashSet<>(Arrays.asList(annImport.value())) : Collections.emptySet();

代码示例来源:origin: io.gravitee.am.plugins.handlers/gravitee-am-plugins-handlers-identityprovider

final Import annImport = userProvider.getAnnotation(Import.class);
Set<Class<?>> configurations = (annImport != null) ?
    new HashSet<>(Arrays.asList(annImport.value())) : Collections.emptySet();

代码示例来源:origin: gravitee-io/graviteeio-access-management

final Import annImport = userProvider.getAnnotation(Import.class);
Set<Class<?>> configurations = (annImport != null) ?
    new HashSet<>(Arrays.asList(annImport.value())) : Collections.emptySet();

代码示例来源:origin: gravitee-io/gravitee-management-rest-api

final Import annImport = identityClass.getAnnotation(Import.class);
Set<Class<?>> configurations = (annImport != null) ?
    new HashSet<>(Arrays.asList(annImport.value())) : Collections.emptySet();

代码示例来源:origin: gravitee-io/graviteeio-access-management

final Import annImport = certificateClass.getAnnotation(Import.class);
Set<Class<?>> configurations = (annImport != null) ?
    new HashSet<>(Arrays.asList(annImport.value())) : Collections.emptySet();

代码示例来源:origin: gravitee-io/graviteeio-access-management

final Import annImport = identityClass.getAnnotation(Import.class);
Set<Class<?>> configurations = (annImport != null) ?
    new HashSet<>(Arrays.asList(annImport.value())) : Collections.emptySet();

代码示例来源:origin: io.gravitee.am.plugins.handlers/gravitee-am-plugins-handlers-identityprovider

final Import annImport = identityClass.getAnnotation(Import.class);
Set<Class<?>> configurations = (annImport != null) ?
    new HashSet<>(Arrays.asList(annImport.value())) : Collections.emptySet();

相关文章