blob: e7dca7bb4342c3461bf1310520de1d16f0a0b95d [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;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Marks a method in a {@link Vendor} creating a product on a {@link Bazaar}. The method can
* request arbitrary parameters from the {@link BazaarContext} or provided by {@link BazaarContextFunction}s.
* This method will be called only on the {@link Vendor} with the highest {@link Bid}.
* Further, the method will only be called if all specified parameters can be resolved. The method returns the created
* product.
* see also {@link Bazaar}
*
* @author jonas
*
*/
@Retention(RUNTIME)
@Target(METHOD)
public @interface Create {
}