Annotation Type GreedyDefaultImplementation


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface GreedyDefaultImplementation
This annotation can be put on interfaces in order to provide the GreedyResolver the default implementation that should be bound when this interface is injected and there are no other implementations
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A class that implements this interface that should be used as a default if there are no other implementations of this class.
  • Element Details

    • value

      Class<?> value
      A class that implements this interface that should be used as a default if there are no other implementations of this class. This is only used when the GreedyResolver is being used
      Returns:
      the default implementation of this class