public abstract class AbstractApiComponent<E extends Enum<E> & ApiName,T,S extends ApiCollection<E,T>> extends DefaultComponent
Component
classes.Modifier and Type | Field and Description |
---|---|
protected Class<E> |
apiNameClass |
protected S |
collection |
protected T |
configuration |
Constructor and Description |
---|
AbstractApiComponent(org.apache.camel.CamelContext context,
Class<? extends org.apache.camel.Endpoint> endpointClass,
Class<E> apiNameClass,
S collection) |
AbstractApiComponent(Class<? extends org.apache.camel.Endpoint> endpointClass,
Class<E> apiNameClass,
S collection) |
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.camel.Endpoint |
createEndpoint(String uri,
String methodName,
E apiName,
T endpointConfiguration) |
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
A factory method allowing derived components to create a new endpoint
from the given URI, remaining path and optional parameters
|
protected T |
createEndpointConfiguration(E name) |
protected abstract E |
getApiName(String apiNameStr) |
T |
getConfiguration() |
void |
setConfiguration(T configuration) |
afterConfiguration, createEndpoint, createEndpoint, doInit, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, preProcessUri, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
build, doBuild, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
@Metadata(label="advanced") protected T configuration
protected final S extends ApiCollection<E,T> collection
public AbstractApiComponent(Class<? extends org.apache.camel.Endpoint> endpointClass, Class<E> apiNameClass, S collection)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
DefaultComponent
createEndpoint
in class DefaultComponent
uri
- the full URI of the endpointremaining
- the remaining part of the URI without the query
parameters or component prefixparameters
- the optional parameters passed inException
- is thrown if error creating the endpointprotected abstract E getApiName(String apiNameStr) throws IllegalArgumentException
IllegalArgumentException
protected abstract org.apache.camel.Endpoint createEndpoint(String uri, String methodName, E apiName, T endpointConfiguration)
protected T createEndpointConfiguration(E name) throws Exception
Exception
public T getConfiguration()
public void setConfiguration(T configuration)
Apache Camel