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 TypeMethodDescriptionboolean
hasSeen
(CouchbasePersistentEntity<?> entity) boolean
isIndexCreatorFor
(MappingContext<?, ?> context) Returns whether the current index creator was registered for the givenMappingContext
.void
onApplicationEvent
(MappingContextEvent<?, ?> event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
CouchbasePersistentEntityIndexCreator
public CouchbasePersistentEntityIndexCreator(CouchbaseMappingContext mappingContext, CouchbaseOperations operations)
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceApplicationListener<MappingContextEvent<?,
?>>
-
isIndexCreatorFor
Returns whether the current index creator was registered for the givenMappingContext
. -
hasSeen
-