@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Bid
Marks a method in a Vendor doing the Bid for creating a product on a Bazaar. The methode can
request arbitrary parameters from the BazaarContext or provided by BazaarContextFunctions.
The method will only be called if all specified parameters can be resolved. The method must to return a
double
indicating the priority. The Vendor with the highest priority on a Bazaar will finally create the product.
see also Bazaar.
A vendor may dynamically opt not to bid. In such case, the bid method must declare its return type
as the Double wrapper and return a null bid to opt out of the bazaar.
Copyright © 2018. All rights reserved.