blob: 999605b2b4feae4ee4d4cdc42d65fcf6f2766462 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011-2018 EclipseSource Muenchen GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* jonas - initial API and implementation
******************************************************************************/
package org.eclipse.emfforms.bazaar.internal;
import javax.inject.Named;
import org.eclipse.emfforms.bazaar.Bid;
import org.eclipse.emfforms.bazaar.Vendor;
/**
* @author jonas
*
*/
public class VendorWithoutPrecondition implements Vendor<MyProduct> {
@Bid
public double bid(@Named(VendorWithPrecondition.KEY) String value) {
if (VendorWithPrecondition.VALUE.equals(value)) {
return 1.0;
}
return 0;
}
}