@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, 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, 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
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.BaseService
Exception
public static CamelMongoDbException wrapInCamelMongoDbException(Throwable t)
Apache Camel