Examples of AnnotationAttributes


Examples of org.springframework.core.annotation.AnnotationAttributes

    ImportedConfig importAwareConfig = ctx.getBean(ImportedConfig.class);
    AnnotationMetadata importMetadata = importAwareConfig.importMetadata;
    assertThat("import metadata was not injected", importMetadata, notNullValue());
    assertThat(importMetadata.getClassName(), is(ImportingConfig.class.getName()));
    AnnotationAttributes importAttribs = AnnotationConfigUtils.attributesFor(importMetadata, Import.class);
    Class<?>[] importedClasses = importAttribs.getClassArray("value");
    assertThat(importedClasses[0].getName(), is(ImportedConfig.class.getName()));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.