Package org.wso2.carbon.mediator.service
Class MediatorStore
- java.lang.Object
-
- org.wso2.carbon.mediator.service.MediatorStore
-
public class MediatorStore extends Object
Keeps track of the mediators that are registered for the sequence editor UI
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediatorStore
getInstance()
Singleton access to the MediatorStoreHashMap<String,HashMap<String,String>>
getMediatorMenuItems()
Retrieves the menu item of mediators, which is being used by the UIMediatorService
getMediatorService(String mediatorName)
Retrieves theMediatorService
with the givenmediatorName
MediatorService
getMediatorService(org.apache.axiom.om.OMElement element)
Helper method for retrieving theMediatorService
by looking at the given serialized mediator elementCollection<MediatorService>
getRegisteredMediators()
Retrieves the registeredMediatorService
collectionvoid
registerMediator(String mediatorName, MediatorService mediatorService)
Registers aMediatorService
with the storevoid
unRegisterMediator(String mediatorName)
Un registers aMediatorService
from the store
-
-
-
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 aMediatorService
with the store- Parameters:
mediatorName
- name of the mediator being registeredmediatorService
- implementation of the mediator service for the mediator with namemediatorName
-
unRegisterMediator
public void unRegisterMediator(String mediatorName)
Un registers aMediatorService
from the store- Parameters:
mediatorName
- name of the mediator of the service to be un registered
-
getMediatorService
public MediatorService getMediatorService(String mediatorName)
Retrieves theMediatorService
with the givenmediatorName
- Parameters:
mediatorName
- name of the mediator to retrieve the mediator service- Returns:
- the mediator service mapped to the given mediator name
-
getRegisteredMediators
public Collection<MediatorService> getRegisteredMediators()
Retrieves the registeredMediatorService
collection- Returns:
- all the registered mediator services in the store
-
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 theMediatorService
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
-
-