@Component(value="mongodb")
public class MongoDbComponent
extends org.apache.camel.support.DefaultComponent
MongoDbEndpoint
.Modifier and Type | Field and Description |
---|---|
static Set<MongoDbOperation> |
WRITE_OPERATIONS |
Constructor and Description |
---|
MongoDbComponent() |
MongoDbComponent(org.apache.camel.CamelContext context) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
protected void |
doShutdown() |
com.mongodb.client.MongoClient |
getMongoConnection()
Get the connection bean client used for connection.
|
void |
setMongoConnection(com.mongodb.client.MongoClient mongoConnection)
Set a client used for connection: all endpoints generated from the component
will share this connection bean.
|
static CamelMongoDbException |
wrapInCamelMongoDbException(Throwable t) |
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, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public static final Set<MongoDbOperation> WRITE_OPERATIONS
public MongoDbComponent()
public MongoDbComponent(org.apache.camel.CamelContext context)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint
in class org.apache.camel.support.DefaultComponent
Exception
public com.mongodb.client.MongoClient getMongoConnection()
public void setMongoConnection(com.mongodb.client.MongoClient mongoConnection)
mongoConnection
- the connection bean used as clientprotected void doShutdown() throws Exception
doShutdown
in class org.apache.camel.support.service.ServiceSupport
Exception
public static CamelMongoDbException wrapInCamelMongoDbException(Throwable t)
Apache Camel