Package org.springframework.core.annotation

Examples of org.springframework.core.annotation.AnnotationAttributes.keySet()


    // values from the target annotation. A copy is necessary so that we do
    // not inadvertently mutate the state of the metadata passed to this
    // method.
    AnnotationAttributes results = new AnnotationAttributes(attributesList.get(0));

    Set<String> overridableAttributeNames = new HashSet<String>(results.keySet());
    overridableAttributeNames.remove(AnnotationUtils.VALUE);

    // Since the map is a LinkedMultiValueMap, we depend on the ordering of
    // elements in the map and reverse the order of the keys in order to traverse
    // "down" the annotation hierarchy.
View Full Code Here


    AnnotationAttributes attributes = AnnotatedElementUtils.getAnnotationAttributes(testClass,
      SqlConfig.class.getName());

    // Override global attributes with local attributes.
    if (attributes != null) {
      for (String key : attributes.keySet()) {
        Object value = AnnotationUtils.getValue(localSqlConfig, key);
        if (value != null) {
          // Is the value explicit (i.e., not a 'default')?
          if (!value.equals("") && (value != TransactionMode.DEFAULT) && (value != ErrorMode.DEFAULT)) {
            attributes.put(key, value);
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.