Package io.micronaut.context.annotation
Annotation Interface Replaces
Allows a bean to specify that it replaces another bean. Note that the bean to be replaced cannot be
an Infrastructure
bean.
- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Field Details
-
MEMBER_NAMED
- See Also:
-
MEMBER_FACTORY
- See Also:
-
MEMBER_BEAN
- See Also:
-
MEMBER_QUALIFIER
- See Also:
-
-
Element Details
-
value
- Returns:
- The bean type that this bean replaces
- Default:
- void.class
-
bean
- Returns:
- The bean type that this bean replaces
- Default:
- void.class
-
factory
Class<?> factory- Returns:
- The declaring bean type
- Default:
- void.class
-
qualifier
Class<? extends Annotation> qualifierThe name of the qualifiers of the bean that should be replaced.- Returns:
- The qualifier
- Default:
- java.lang.annotation.Annotation.class
-
named
String namedThe name of the qualifiers of the bean that should be replaced.- Returns:
- The qualifier
- Default:
- ""
-