Class SolrPersistentEntitySchemaCreator
java.lang.Object
org.springframework.data.solr.core.schema.SolrPersistentEntitySchemaCreator
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.data.mapping.context.MappingContextEvent<?,?>>
public class SolrPersistentEntitySchemaCreator
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.data.mapping.context.MappingContextEvent<?,?>>
- Since:
- 1.3
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSolrPersistentEntitySchemaCreator(SolrClientFactory solrClientFactory) SolrPersistentEntitySchemaCreator(SolrClientFactory factory, SolrSchemaWriter schemaWriter) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterSchemaWrite(SolrPersistentEntity<?> entity, SchemaDefinition schema) protected voidbeforeSchemaWrite(SolrPersistentEntity<?> entity, SchemaDefinition schema) voidonApplicationEvent(org.springframework.data.mapping.context.MappingContextEvent<?, ?> event)
-
Constructor Details
-
SolrPersistentEntitySchemaCreator
-
SolrPersistentEntitySchemaCreator
public SolrPersistentEntitySchemaCreator(SolrClientFactory factory, @Nullable SolrSchemaWriter schemaWriter)
-
-
Method Details
-
beforeSchemaWrite
-
afterSchemaWrite
-
onApplicationEvent
public void onApplicationEvent(org.springframework.data.mapping.context.MappingContextEvent<?, ?> event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.data.mapping.context.MappingContextEvent<?,?>>
-
enable
public SolrPersistentEntitySchemaCreator enable(@Nullable SolrPersistentEntitySchemaCreator.Feature feature) -
enable
public SolrPersistentEntitySchemaCreator enable(Collection<SolrPersistentEntitySchemaCreator.Feature> features) -
disable
-