Class OnMcpConnectionCondition

  • All Implemented Interfaces:
    org.springframework.context.annotation.Condition

    
    public final class OnMcpConnectionCondition
     implements Condition
                        

    Condition that checks if an MCP connection is configured in Spring AI properties.

    This evaluates during bean definition phase by checking property keys, avoiding the lifecycle timing issues of checking for instantiated beans.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OnMcpConnectionCondition

        OnMcpConnectionCondition()
    • Method Detail

      • matches

         Boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata)