Skip to content

Package: Create

Create

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.METHOD;
17: import static java.lang.annotation.RetentionPolicy.RUNTIME;
18:
19: import java.lang.annotation.Retention;
20: import java.lang.annotation.Target;
21:
22: /**
23: * Marks a method in a {@link Vendor} creating a product on a {@link Bazaar}. The method can
24: * request arbitrary parameters from the {@link BazaarContext} or provided by {@link BazaarContextFunction}s.
25: * This method will be called only on the {@link Vendor} with the highest {@link Bid}.
26: * Further, the method will only be called if all specified parameters can be resolved. The method returns the created
27: * product.
28: * see also {@link Bazaar}
29: *
30: * @author jonas
31: *
32: */
33: @Retention(RUNTIME)
34: @Target(METHOD)
35: public @interface Create {
36:
37: }