Class AbstractMongoDbMessageSourceSpec<S extends AbstractMongoDbMessageSourceSpec<S,H>,H extends AbstractMongoDbMessageSource<?>>  
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
 
org.springframework.integration.dsl.MessageSourceSpec<S,H>
 
org.springframework.integration.mongodb.dsl.AbstractMongoDbMessageSourceSpec<S,H> 
- Type Parameters:
- S- target spec type.
- H- target message source type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<H>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle
- Direct Known Subclasses:
- MongoDbMessageSourceSpec,- ReactiveMongoDbMessageSourceSpec
public class AbstractMongoDbMessageSourceSpec<S extends AbstractMongoDbMessageSourceSpec<S,H>,H extends AbstractMongoDbMessageSource<?>>  
extends MessageSourceSpec<S,H> 
A 
MessageSourceSpec extension for common MongoDB sources options.- Since:
- 5.5
- Author:
- Artem Bilan
- 
Field SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncollectionName(String collectionName) Configure a collection name to query against.collectionNameExpression(String collectionNameExpression) Configure a SpEL expression to evaluation a collection name on eachreceive()call.collectionNameExpression(Expression collectionNameExpression) Configure a SpEL expression to evaluation a collection name on eachreceive()call.collectionNameSupplier(Supplier<String> collectionNameSupplier) Configure aSupplierto obtain a collection name on eachreceive()call.entityClass(Class<?> entityClass) Allow you to set the type of the entityClass that will be passed to the MongoDB query method.expectSingleResult(boolean expectSingleResult) Allow you to manage which find* method to invoke.mongoConverter(MongoConverter mongoConverter) Configure a customMongoConverterused to assist in deserialization data read from MongoDb.Configure a MongoDB update.Configure a MongoDB update.update(Expression updateExpression) Configure a SpEL expression to evaluate a MongoDB update.updateSupplier(Supplier<Update> updateSupplier) Configure aSupplierto produce a MongoDB update on each receive call.Methods inherited from class org.springframework.integration.dsl.MessageSourceSpecmessageHeadersMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
AbstractMongoDbMessageSourceSpecpublic AbstractMongoDbMessageSourceSpec()
 
- 
- 
Method Details- 
entityClassAllow you to set the type of the entityClass that will be passed to the MongoDB query method. Default isDBObject.- Parameters:
- entityClass- The entity class.
- Returns:
- the spec
- See Also:
 
- 
expectSingleResultAllow you to manage which find* method to invoke.- Parameters:
- expectSingleResult- true if a single result is expected.
- Returns:
- the spec
- See Also:
 
- 
collectionNameConfigure a collection name to query against.- Parameters:
- collectionName- the name of the MongoDb collection
- Returns:
- the spec
 
- 
collectionNameExpressionConfigure a SpEL expression to evaluation a collection name on eachreceive()call.- Parameters:
- collectionNameExpression- the SpEL expression for name of the MongoDb collection
- Returns:
- the spec
 
- 
collectionNameSupplierConfigure aSupplierto obtain a collection name on eachreceive()call.- Parameters:
- collectionNameSupplier- the- Supplierfor name of the MongoDb collection
- Returns:
- the spec
 
- 
collectionNameExpressionConfigure a SpEL expression to evaluation a collection name on eachreceive()call.- Parameters:
- collectionNameExpression- the SpEL expression for name of the MongoDb collection
- Returns:
- the spec
- See Also:
 
- 
mongoConverterConfigure a customMongoConverterused to assist in deserialization data read from MongoDb.- Parameters:
- mongoConverter- The mongo converter.
- Returns:
- the spec
- See Also:
 
- 
updateConfigure a MongoDB update.- Parameters:
- update- the MongoDB update.
- Returns:
- the spec
 
- 
updateConfigure a MongoDB update.- Parameters:
- update- the MongoDB update.
- Returns:
- the spec
 
- 
updateSupplierConfigure aSupplierto produce a MongoDB update on each receive call.- Parameters:
- updateSupplier- the- Supplierfor MongoDB update.
- Returns:
- the spec
 
- 
updateConfigure a SpEL expression to evaluate a MongoDB update.- Parameters:
- updateExpression- the expression to evaluate a MongoDB update.
- Returns:
- the spec
 
 
-