Package restx.factory

Annotation Interface Alternative


public @interface Alternative
Marks a class as an alternative implementation, to be used under certain conditions only. The Name used for the alternative is composed by: - The class defined by to() - The name defined by named() if defined, or the name of the component referenced by to() if one is defined, or the simple name of the class defined by to().
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    int
     
  • Element Details

    • priority

      int priority
      Default:
      -1000
    • named

      String named
      Default:
      ""