org.springframework.data.auditing.config.AuditingConfiguration Java Examples
The following examples show how to use
org.springframework.data.auditing.config.AuditingConfiguration.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Neo4jAuditingRegistrar.java From sdn-rx with Apache License 2.0 | 5 votes |
@Override protected BeanDefinitionBuilder getAuditHandlerBeanDefinitionBuilder(AuditingConfiguration configuration) { Assert.notNull(configuration, "AuditingConfiguration must not be null!"); BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(IsNewAwareAuditingHandler.class); BeanDefinitionBuilder persistentEntities = BeanDefinitionBuilder .genericBeanDefinition(PersistentEntities.class) .setFactoryMethod("of"); persistentEntities.addConstructorArgReference(MAPPING_CONTEXT_BEAN_NAME); builder.addConstructorArgValue(persistentEntities.getBeanDefinition()); return configureDefaultAuditHandlerAttributes(configuration, builder); }
Example #2
Source File: ArangoAuditingRegistrar.java From spring-data with Apache License 2.0 | 5 votes |
@Override protected BeanDefinitionBuilder getAuditHandlerBeanDefinitionBuilder(final AuditingConfiguration configuration) { Assert.notNull(configuration, "AuditingConfiguration must not be null!"); final BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(IsNewAwareAuditingHandler.class); final BeanDefinitionBuilder definition = BeanDefinitionBuilder .genericBeanDefinition(ArangoMappingContextLookup.class); definition.setAutowireMode(AbstractBeanDefinition.AUTOWIRE_CONSTRUCTOR); builder.addConstructorArgValue(definition.getBeanDefinition()); return configureDefaultAuditHandlerAttributes(configuration, builder); }
Example #3
Source File: MybatisAuditingRegistrar.java From spring-data-mybatis with Apache License 2.0 | 5 votes |
@Override protected BeanDefinitionBuilder getAuditHandlerBeanDefinitionBuilder( AuditingConfiguration configuration) { Assert.notNull(configuration, "AuditingConfiguration must not be null!"); BeanDefinitionBuilder builder = configureDefaultAuditHandlerAttributes( configuration, BeanDefinitionBuilder.rootBeanDefinition(MybatisAuditingHandler.class)); return builder.addConstructorArgReference(MYBATIS_MAPPING_CONTEXT_BEAN_NAME); }
Example #4
Source File: DatastoreAuditingRegistrar.java From spring-cloud-gcp with Apache License 2.0 | 4 votes |
@Override protected BeanDefinitionBuilder getAuditHandlerBeanDefinitionBuilder(AuditingConfiguration configuration) { BeanDefinitionBuilder builder = configureDefaultAuditHandlerAttributes(configuration, BeanDefinitionBuilder.rootBeanDefinition(AuditingHandler.class)); return builder.addConstructorArgReference(MAPPING_CONTEXT_BEAN_NAME); }
Example #5
Source File: SpannerAuditingRegistrar.java From spring-cloud-gcp with Apache License 2.0 | 4 votes |
@Override protected BeanDefinitionBuilder getAuditHandlerBeanDefinitionBuilder(AuditingConfiguration configuration) { BeanDefinitionBuilder builder = configureDefaultAuditHandlerAttributes(configuration, BeanDefinitionBuilder.rootBeanDefinition(AuditingHandler.class)); return builder.addConstructorArgReference(MAPPING_CONTEXT_BEAN_NAME); }