Class MediatorStore


  • public class MediatorStore
    extends Object
    Keeps track of the mediators that are registered for the sequence editor UI
    • Method Detail

      • getInstance

        public static MediatorStore getInstance()
        Singleton access to the MediatorStore
        Returns:
        the singleton instance
      • registerMediator

        public void registerMediator​(String mediatorName,
                                     MediatorService mediatorService)
        Registers a MediatorService with the store
        Parameters:
        mediatorName - name of the mediator being registered
        mediatorService - implementation of the mediator service for the mediator with name mediatorName
      • unRegisterMediator

        public void unRegisterMediator​(String mediatorName)
        Un registers a MediatorService from the store
        Parameters:
        mediatorName - name of the mediator of the service to be un registered
      • getMediatorService

        public MediatorService getMediatorService​(String mediatorName)
        Retrieves the MediatorService with the given mediatorName
        Parameters:
        mediatorName - name of the mediator to retrieve the mediator service
        Returns:
        the mediator service mapped to the given mediator name
      • getMediatorMenuItems

        public HashMap<String,​HashMap<String,​String>> getMediatorMenuItems()
        Retrieves the menu item of mediators, which is being used by the UI
        Returns:
        the mapped data model for the mediator menu items
      • getMediatorService

        public MediatorService getMediatorService​(org.apache.axiom.om.OMElement element)
        Helper method for retrieving the MediatorService by looking at the given serialized mediator element
        Parameters:
        element - serialized representation of a mediator of which the mediator service is looked up
        Returns:
        the looked up mediator service from the mediator serialization format