Package io.micronaut.inject
Interface ReplacesDefinition<T>
- Type Parameters:
T- The type of the bean definition
- All Known Implementing Classes:
DefaultReplacesDefinition
public interface ReplacesDefinition<T>
The
Replaces definition. The class will check if the given bean definition is replaced by the current bean definition.- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanreplaces(BeanDefinition<T> beanDefinition) Checks if the given bean definition is replaced by the current bean definition.
-
Method Details
-
replaces
Checks if the given bean definition is replaced by the current bean definition.- Parameters:
beanDefinition- The candidate bean definition to be replaced- Returns:
- true if replaces
-