Skip to content

Commit

Permalink
Remove legacy component map handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Idane committed Aug 15, 2021
1 parent 8aa6cb6 commit 4cb55e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 96 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.antelopesystem.crudframework.utils.component.componentmap.configuration

import com.antelopesystem.crudframework.utils.component.componentmap.ComponentMapPostProcessor
import com.antelopesystem.crudframework.utils.component.componentmap.LegacyComponentMapHandler
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.core.Ordered
Expand All @@ -12,15 +10,7 @@ import org.springframework.core.annotation.Order
class ComponentMapConfiguration {
@Bean
@Order(Ordered.HIGHEST_PRECEDENCE)
@ConditionalOnProperty("crudframework.component-map.legacy-mode", havingValue = "false", matchIfMissing = true)
fun componentMapPostProcessor(): ComponentMapPostProcessor {
return ComponentMapPostProcessor()
}

@Bean
@Order(Ordered.HIGHEST_PRECEDENCE)
@ConditionalOnProperty("crudframework.component-map.legacy-mode", havingValue = "true")
fun legacyComponentMapHandler(): LegacyComponentMapHandler {
return LegacyComponentMapHandler()
}
}

0 comments on commit 4cb55e2

Please sign in to comment.