Annotation Type Precondition


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface Precondition
    Annotation to allow Vendors to specify a Precondition, which must be present in the BazaarContext. A Precondition specifies a key and a value, This key value pair must be present in the BazaarContext, otherwise the Vendor is not asked for a Bid.
    Author:
    jonas
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String UNASSIGNED
      default for values.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String key  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value  
    • Field Detail

      • UNASSIGNED

        static final java.lang.String UNASSIGNED
        default for values. If no value is used, just the existence of the key is checked.
    • Element Detail

      • key

        java.lang.String key
        Returns:
        the key to be present in the BazaarContext
      • value

        java.lang.String value
        Returns:
        the value to be present in the BazaarContext under the specified key. Default is Precondition.UNASSIGNED
        Default:
        "[unassigned]"