Package org.springframework.context.annotation

Examples of org.springframework.context.annotation.Condition


    private final String condition;

    private final String message;

    public MessageAndCondition(ConditionAndOutcome conditionAndOutcome) {
      Condition condition = conditionAndOutcome.getCondition();
      ConditionOutcome outcome = conditionAndOutcome.getOutcome();
      this.condition = ClassUtils.getShortName(condition.getClass());
      if (StringUtils.hasLength(outcome.getMessage())) {
        this.message = outcome.getMessage();
      }
      else {
        this.message = (outcome.isMatch() ? "matched" : "did not match");
View Full Code Here


      MultiValueMap<AnnotationMetadata, Condition> memberConditions = new LinkedMultiValueMap<AnnotationMetadata, Condition>();
      for (String member : members) {
        AnnotationMetadata metadata = getMetadata(member);
        for (String[] conditionClasses : getConditionClasses(metadata)) {
          for (String conditionClass : conditionClasses) {
            Condition condition = getCondition(conditionClass);
            memberConditions.add(metadata, condition);
          }
        }
      }
      return Collections.unmodifiableMap(memberConditions);
View Full Code Here

TOP

Related Classes of org.springframework.context.annotation.Condition

Copyright © 2018 www.massapicom. 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.