|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.core.index.MongoPersistentEntityIndexCreator
public class MongoPersistentEntityIndexCreator
Component that inspects MongoPersistentEntity instances contained in the given MongoMappingContext
for indexing metadata and ensures the indexes to be available.
| Constructor Summary | |
|---|---|
MongoPersistentEntityIndexCreator(MongoMappingContext mappingContext,
MongoDbFactory mongoDbFactory)
Creats a new MongoPersistentEntityIndexCreator for the given MongoMappingContext and
MongoDbFactory. |
|
MongoPersistentEntityIndexCreator(MongoMappingContext mappingContext,
MongoDbFactory mongoDbFactory,
org.springframework.data.mongodb.core.index.IndexResolver indexResolver)
Creats a new MongoPersistentEntityIndexCreator for the given MongoMappingContext and
MongoDbFactory. |
|
| Method Summary | |
|---|---|
boolean |
isIndexCreatorFor(MappingContext<?,?> context)
Returns whether the current index creator was registered for the given MappingContext. |
void |
onApplicationEvent(MappingContextEvent<MongoPersistentEntity<?>,MongoPersistentProperty> event)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MongoPersistentEntityIndexCreator(MongoMappingContext mappingContext,
MongoDbFactory mongoDbFactory)
MongoPersistentEntityIndexCreator for the given MongoMappingContext and
MongoDbFactory.
mappingContext - must not be null.mongoDbFactory - must not be null.
public MongoPersistentEntityIndexCreator(MongoMappingContext mappingContext,
MongoDbFactory mongoDbFactory,
org.springframework.data.mongodb.core.index.IndexResolver indexResolver)
MongoPersistentEntityIndexCreator for the given MongoMappingContext and
MongoDbFactory.
mappingContext - must not be null.mongoDbFactory - must not be null.indexResolver - must not be null.| Method Detail |
|---|
public void onApplicationEvent(MappingContextEvent<MongoPersistentEntity<?>,MongoPersistentProperty> event)
onApplicationEvent in interface ApplicationListener<MappingContextEvent<MongoPersistentEntity<?>,MongoPersistentProperty>>public boolean isIndexCreatorFor(MappingContext<?,?> context)
MappingContext.
context -
|
Spring Data MongoDB - Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||