Class NoBeanOfType.NoBeanOfTypeDefined

java.lang.Object
org.axonframework.spring.config.NoBeanOfType.NoBeanOfTypeDefined
All Implemented Interfaces:
org.springframework.context.annotation.Condition
Enclosing class:
NoBeanOfType

public static class NoBeanOfType.NoBeanOfTypeDefined extends Object implements org.springframework.context.annotation.Condition
Condition that checks if a bean with given class already exists in the Spring context. If so this condition returns false preventing the creation of another bean.
  • Constructor Details

    • NoBeanOfTypeDefined

      public NoBeanOfTypeDefined()
  • Method Details

    • matches

      public boolean matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
      Specified by:
      matches in interface org.springframework.context.annotation.Condition