Annotation Interface Replaces


@Documented @Retention(RUNTIME) public @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

  • Element Details

    • value

      @AliasFor(member="bean") Class<?> value
      Returns:
      The bean type that this bean replaces
      Default:
      void.class
    • bean

      @AliasFor(member="value") 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> qualifier
      The name of the qualifiers of the bean that should be replaced.
      Returns:
      The qualifier
      Default:
      java.lang.annotation.Annotation.class
    • named

      String named
      The name of the qualifiers of the bean that should be replaced.
      Returns:
      The qualifier
      Default:
      ""