Skip to content

Package: StaticBid

StaticBid

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2018 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * jonas - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.bazaar;
15:
16: import static java.lang.annotation.ElementType.TYPE;
17: import static java.lang.annotation.RetentionPolicy.RUNTIME;
18:
19: import java.lang.annotation.Retention;
20: import java.lang.annotation.Target;
21:
22: /**
23: * Allows a vendor to do a static bid. Will be called only if {@link Precondition}s are met. Not {@link Bid} will be
24: * called after a {@link StaticBid}.
25: *
26: * @author jonas
27: *
28: */
29: @Retention(RUNTIME)
30: @Target(TYPE)
31: public @interface StaticBid {
32:         /**
33:          *
34:          * @return the static bid
35:          */
36:         double bid();
37:
38: }