public class MongoPersistentEntityIndexCreator extends Object implements ApplicationListener<MappingContextEvent<?,?>>
MongoPersistentEntity instances contained in the given MongoMappingContext
for indexing metadata and ensures the indexes to be available.| Constructor and Description |
|---|
MongoPersistentEntityIndexCreator(MongoMappingContext mappingContext,
IndexOperationsProvider indexOperationsProvider)
Creates a new
MongoPersistentEntityIndexCreator for the given MongoMappingContext and
MongoDbFactory. |
MongoPersistentEntityIndexCreator(MongoMappingContext mappingContext,
IndexOperationsProvider indexOperationsProvider,
IndexResolver indexResolver)
Creates a new
MongoPersistentEntityIndexCreator for the given MongoMappingContext and
MongoDbFactory. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isIndexCreatorFor(MappingContext<?,?> context)
Returns whether the current index creator was registered for the given
MappingContext. |
void |
onApplicationEvent(MappingContextEvent<?,?> event) |
public MongoPersistentEntityIndexCreator(MongoMappingContext mappingContext, IndexOperationsProvider indexOperationsProvider)
MongoPersistentEntityIndexCreator for the given MongoMappingContext and
MongoDbFactory.mappingContext - must not be null.indexOperationsProvider - must not be null.public MongoPersistentEntityIndexCreator(MongoMappingContext mappingContext, IndexOperationsProvider indexOperationsProvider, IndexResolver indexResolver)
MongoPersistentEntityIndexCreator for the given MongoMappingContext and
MongoDbFactory.mappingContext - must not be null.mongoDbFactory - must not be null.indexResolver - must not be null.public void onApplicationEvent(MappingContextEvent<?,?> event)
onApplicationEvent in interface ApplicationListener<MappingContextEvent<?,?>>public boolean isIndexCreatorFor(MappingContext<?,?> context)
MappingContext.context - Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.