java.lang.Object
org.apache.camel.support.component.ApiCollection<E,T>
Base class for a collection of ApiMethods. Meant to be extended by Components to create the api name map.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Map
<E, ApiMethodHelper<? extends ApiMethod>> final E
getApiName
(Class<? extends ApiMethod> apiMethod) Returns a list of API name strings.abstract T
getEndpointConfiguration
(E apiName) Creates an endpoint configuration for a particular APIfinal ApiMethodHelper
<? extends ApiMethod> Returns aApiMethodHelper
for a particular API.protected final void
setApiHelpers
(Map<E, ApiMethodHelper<? extends ApiMethod>> apiHelpers) protected final void
setApiMethods
(Map<Class<? extends ApiMethod>, E> apiMethods)
-
Constructor Details
-
ApiCollection
public ApiCollection()
-
-
Method Details
-
getApiHelpers
-
getApiMethods
-
getHelper
Returns aApiMethodHelper
for a particular API.- Parameters:
apiName
- name of the API- Returns:
- helper class to work with
ApiMethod
-
getApiNames
Returns a list of API name strings.- Returns:
- list of API names.
-
getApiName
-
getEndpointConfiguration
Creates an endpoint configuration for a particular API- Parameters:
apiName
- name of the API.- Returns:
- Endpoint configuration object for the API.
-
setApiHelpers
-
setApiMethods
-