public final class ReferenceStrategyUtil extends Object
Modifier and Type | Method and Description |
---|---|
static BazaarContext.Builder |
bazaarContextBuilder(org.osgi.service.component.ComponentContext context,
org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference reference)
Creates a
BazaarContext builder that seeds the context with the properties of the
ComponentContext , the owner as a context value for class EObject ,
and the reference for class EReference . |
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 EClassSelectionStrategies
context
- The receiver's ComponentContextEClassSelectionStrategy
public 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 ComponentContext
owner
- The EObject
containing a referencereference
- The EReference
BazaarContext
public static BazaarContext.Builder bazaarContextBuilder(org.osgi.service.component.ComponentContext context, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
BazaarContext
builder that seeds the context with the properties of the
ComponentContext
, the owner
as a context value for class EObject
,
and the reference
for class EReference
.context
- The ComponentContext
owner
- The EObject
containing a referencereference
- The EReference
BazaarContext
Copyright © 2019. All rights reserved.