public class MediatorStore extends Object
Modifier and Type | Method and Description |
---|---|
static MediatorStore |
getInstance()
Singleton access to the MediatorStore
|
HashMap<String,HashMap<String,String>> |
getMediatorMenuItems()
Retrieves the menu item of mediators, which is being used by the UI
|
MediatorService |
getMediatorService(org.apache.axiom.om.OMElement element)
Helper method for retrieving the
MediatorService
by looking at the given serialized mediator element |
MediatorService |
getMediatorService(String mediatorName)
Retrieves the
MediatorService with
the given mediatorName |
Collection<MediatorService> |
getRegisteredMediators()
Retrieves the registered
MediatorService collection |
void |
registerMediator(String mediatorName,
MediatorService mediatorService)
Registers a
MediatorService with the store |
void |
unRegisterMediator(String mediatorName)
Un registers a
MediatorService from the store |
public static MediatorStore getInstance()
public void registerMediator(String mediatorName, MediatorService mediatorService)
MediatorService
with the storemediatorName
- name of the mediator being registeredmediatorService
- implementation of the mediator service for
the mediator with name mediatorName
public void unRegisterMediator(String mediatorName)
MediatorService
from the storemediatorName
- name of the mediator of the service to be un registeredpublic MediatorService getMediatorService(String mediatorName)
MediatorService
with
the given mediatorName
mediatorName
- name of the mediator to retrieve the mediator servicepublic Collection<MediatorService> getRegisteredMediators()
MediatorService
collectionpublic HashMap<String,HashMap<String,String>> getMediatorMenuItems()
public MediatorService getMediatorService(org.apache.axiom.om.OMElement element)
MediatorService
by looking at the given serialized mediator elementelement
- serialized representation of a mediator of which
the mediator service is looked upCopyright © 2018 WSO2. All rights reserved.