public final class ReferenceStrategyUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static BazaarContext |
createBazaarContext(org.osgi.service.component.ComponentContext context,
org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference reference)
Creates a basic
BazaarContext that contains the properties of the ComponentContext. |
static EClassSelectionStrategy |
createDynamicEClassSelectionStrategy(Bazaar<EClassSelectionStrategy> bazaar,
org.osgi.service.component.ComponentContext context)
Creates an
EClassSelectionStrategy which uses all EClassSelectionStrategies registered to the given bazaar. |
public static EClassSelectionStrategy createDynamicEClassSelectionStrategy(Bazaar<EClassSelectionStrategy> bazaar, org.osgi.service.component.ComponentContext context)
EClassSelectionStrategy which uses all EClassSelectionStrategies registered to the given bazaar. When
EClassSelectionStrategy.collectEClasses(EObject, EReference, Collection) of the created strategy is
called, all applicable strategies are applied one after another.bazaar - The Bazaar providing the EClassSelectionStrategiescontext - The receiver's ComponentContextEClassSelectionStrategypublic static BazaarContext createBazaarContext(org.osgi.service.component.ComponentContext context, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
BazaarContext that contains the properties of the ComponentContext. Adds the
owner as a context value for class EObject and the reference for class
EReference.context - The ComponentContextowner - The EObject containing a referencereference - The EReferenceBazaarContextCopyright © 2018. All rights reserved.