org.apache.camel.util.component
Class ApiCollection<E extends Enum<E> & ApiName,T>
java.lang.Object
org.apache.camel.util.component.ApiCollection<E,T>
public abstract class ApiCollection<E extends Enum<E> & ApiName,T>
- extends Object
Base class for a collection of ApiMethods. Meant to be extended by Components to create the api name map.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
apis
protected final Map<E extends Enum<E> & ApiName,ApiMethodHelper<? extends ApiMethod>> apis
apiMethods
protected final HashMap<Class<? extends ApiMethod>,E extends Enum<E> & ApiName> apiMethods
ApiCollection
public ApiCollection()
getApiHelpers
public final Map<E,ApiMethodHelper<? extends ApiMethod>> getApiHelpers()
getApiMethods
public final Map<Class<? extends ApiMethod>,E> getApiMethods()
getHelper
public final ApiMethodHelper<? extends ApiMethod> getHelper(E apiName)
- Returns a
ApiMethodHelper for a particular API.
- Parameters:
apiName - name of the API
- Returns:
- helper class to work with
ApiMethod
getApiNames
public final Set<String> getApiNames()
- Returns a list of API name strings.
- Returns:
- list of API names.
getApiName
public final E getApiName(Class<? extends ApiMethod> apiMethod)
getEndpointConfiguration
public abstract T getEndpointConfiguration(E apiName)
- Creates an endpoint configuration for a particular API
- Parameters:
apiName - name of the API.
- Returns:
- Endpoint configuration object for the API.
Apache Camel