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 EndpointServicegetEndpointService(String tagLocalName)Retrieves theEndpointServicewith the giventagLocalNameEndpointServicegetEndpointService(org.apache.axiom.om.OMElement element)Retrieves theEndpointServicewith the givenelementstatic EndpointStoregetInstance()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 theEndpointServicevoidregisterEndpoint(String endpointTagLocalName, EndpointService endpointService)Registers aEndpointServicewith 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 aEndpointServicewith 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 theEndpointServicewith 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 theEndpointServicewith 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
-
-