Package org.eclipse.emfforms.spi.bazaar
Class BazaarUtil
- java.lang.Object
-
- org.eclipse.emfforms.spi.bazaar.BazaarUtil
-
public final class BazaarUtil extends java.lang.Object
Utility class providing common functionality for the creation ofBazaars
.- Author:
- Lucas Koehler
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BazaarContext.Builder
createBaseContext(java.util.Dictionary<java.lang.String,?> properties)
Creates a basicBazaar Context Builder
with the given initial values.static <T> Bazaar<T>
createBazaar(T defaultProduct)
Creates a newBazaar
initialized with a given default product.
-
-
-
Method Detail
-
createBazaar
public static <T> Bazaar<T> createBazaar(T defaultProduct)
Creates a newBazaar
initialized with a given default product. The created bazaar has a vendor which can always provide the default product. Thereby, this vendor always bids the lowest valid amount.- Type Parameters:
T
- The type of the bazaar's created products.- Parameters:
defaultProduct
- The default product which can always be created- Returns:
- The created
Bazaar
-
createBaseContext
public static BazaarContext.Builder createBaseContext(java.util.Dictionary<java.lang.String,?> properties)
Creates a basicBazaar Context Builder
with the given initial values.- Parameters:
properties
-Dictionary
containing the initial values- Returns:
- The created
BazaarContext.Builder
-
-