Skip to content

Package: BazaarContextFunction

BazaarContextFunction

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 java.security.Policy.Parameters;
17:
18: /**
19: * Can exchange {@link Parameters} in a {@link BazaarContext} into a new parameter which is requested by
20: * a {@link Vendor}. Is registered at a {@link Bazaar#addContextFunction(String, BazaarContextFunction)} under a
21: * key. The key matches the parameter, this {@link BazaarContextFunction} can exchange to. A
22: * {@link BazaarContextFunction} holds a method annotated with {@link Exchange}. This method can request arbitrary
23: * parameters present in the {@link BazaarContext} and return the exchanged parameter.
24: *
25: * @author jonas
26: *
27: */
28: public interface BazaarContextFunction {
29:
30: }