Package org.eclipse.emfforms.bazaar
Annotation Type Bid
-
@Retention(RUNTIME) @Target(METHOD) public @interface Bid
Marks a method in a
Vendor
doing theBid
for creating a product on aBazaar
. The methode can request arbitrary parameters from theBazaarContext
or provided byBazaarContextFunction
s. The method will only be called if all specified parameters can be resolved. The method must to return adouble
indicating the priority. TheVendor
with the highest priority on a Bazaar will finally create the product. see alsoBazaar
.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 anull
bid to opt out of the bazaar.- Author:
- jonas