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, doBuild, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
build, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Metadata(label="advanced", description="Component configuration") 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