Class EndpointStore
- java.lang.Object
-
- org.wso2.carbon.endpoint.ui.endpoints.EndpointStore
-
public class EndpointStore extends Object
Keeps track of the endpoints that are registered for the Endpoint editor UI
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointService
getEndpointService(String tagLocalName)
Retrieves theEndpointService
with the giventagLocalName
EndpointService
getEndpointService(org.apache.axiom.om.OMElement element)
Retrieves theEndpointService
with the givenelement
static EndpointStore
getInstance()
Singleton access to the EndpointStoreArrayList<String[]>
getMenuItems()
Retrieves the menu item of endpoint types, which is being used by the UICollection<EndpointService>
getRegisteredEndpoints()
Retrieves all theEndpointService
void
registerEndpoint(String endpointTagLocalName, EndpointService endpointService)
Registers aEndpointService
with the store
-
-
-
Method Detail
-
getInstance
public static EndpointStore getInstance()
Singleton access to the EndpointStore- Returns:
- the singleton instance
-
registerEndpoint
public void registerEndpoint(String endpointTagLocalName, EndpointService endpointService)
Registers aEndpointService
with the store- Parameters:
endpointTagLocalName
- tag name of the endpoint being registeredendpointService
- implementation of the endpoint service for the endpoint with nameendpointTagLocalName
-
getEndpointService
public EndpointService getEndpointService(org.apache.axiom.om.OMElement element)
Retrieves theEndpointService
with the givenelement
- Parameters:
element
- configuration of the endpoint to retrieve the endpoint service- Returns:
- the endpoint service mapped to the given configuration
-
getEndpointService
public EndpointService getEndpointService(String tagLocalName)
Retrieves theEndpointService
with the giventagLocalName
- Parameters:
tagLocalName
- tag name of the endpoint to retrieve the endpoint service- Returns:
- the endpoint service mapped to the given configuration
-
getRegisteredEndpoints
public Collection<EndpointService> getRegisteredEndpoints()
Retrieves all theEndpointService
- Returns:
- all endpoint services registered in the store
-
-