Package org.axonframework.spring.config
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
-
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:
matchesin interfaceorg.springframework.context.annotation.Condition
-