org.apache.camel.util.component
Class ApiCollection<E extends Enum<E> & ApiName,T>

java.lang.Object
  extended by 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.


Field Summary
protected  HashMap<Class<? extends ApiMethod>,E> apiMethods
           
protected  Map<E,ApiMethodHelper<? extends ApiMethod>> apis
           
 
Constructor Summary
ApiCollection()
           
 
Method Summary
 Map<E,ApiMethodHelper<? extends ApiMethod>> getApiHelpers()
           
 Map<Class<? extends ApiMethod>,E> getApiMethods()
           
 E getApiName(Class<? extends ApiMethod> apiMethod)
           
 Set<String> getApiNames()
          Returns a list of API name strings.
abstract  T getEndpointConfiguration(E apiName)
          Creates an endpoint configuration for a particular API
 ApiMethodHelper<? extends ApiMethod> getHelper(E apiName)
          Returns a ApiMethodHelper for a particular API.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ApiCollection

public ApiCollection()
Method Detail

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