Class ReferenceStrategyUtil


  • public final class ReferenceStrategyUtil
    extends java.lang.Object
    Common functionality for the creation strategies for the DefaultReferenceService.
    Since:
    1.17
    Author:
    Lucas Koehler
    • Method Detail

      • createBazaarContext

        public 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. Adds the owner as a context value for class EObject and the reference for class EReference.
        Parameters:
        context - The ComponentContext
        owner - The EObject containing a reference
        reference - The EReference
        Returns:
        The configured BazaarContext
      • bazaarContextBuilder

        public 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.
        Parameters:
        context - The ComponentContext
        owner - The EObject containing a reference
        reference - The EReference
        Returns:
        The configured BazaarContext
        Since:
        1.22