Class CouchbasePersistentEntityIndexCreator
java.lang.Object
org.springframework.data.couchbase.core.index.CouchbasePersistentEntityIndexCreator
- All Implemented Interfaces:
EventListener,ApplicationListener<MappingContextEvent<?,?>>
public class CouchbasePersistentEntityIndexCreator
extends Object
implements ApplicationListener<MappingContextEvent<?,?>>
- Author:
- Michael Nitschinger, Michael Reiche
-
Constructor Summary
ConstructorsConstructorDescriptionCouchbasePersistentEntityIndexCreator(CouchbaseMappingContext mappingContext, CouchbaseOperations operations) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasSeen(CouchbasePersistentEntity<?> entity) booleanisIndexCreatorFor(MappingContext<?, ?> context) Returns whether the current index creator was registered for the givenMappingContext.voidonApplicationEvent(MappingContextEvent<?, ?> event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
CouchbasePersistentEntityIndexCreator
public CouchbasePersistentEntityIndexCreator(CouchbaseMappingContext mappingContext, CouchbaseOperations operations)
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceApplicationListener<MappingContextEvent<?,?>>
-
isIndexCreatorFor
Returns whether the current index creator was registered for the givenMappingContext. -
hasSeen
-