-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ObjectMapper bean generation for redis, mongodb and jpa driven ad…
…apters (#143)
- Loading branch information
1 parent
c9c0098
commit 92a2a12
Showing
15 changed files
with
64 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
package=co.com.bancolombia | ||
systemProp.version=1.9.0 | ||
systemProp.version=1.9.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/co/com/bancolombia/factory/commons/ObjectMapperFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package co.com.bancolombia.factory.commons; | ||
|
||
import co.com.bancolombia.Constants; | ||
import co.com.bancolombia.exceptions.CleanException; | ||
import co.com.bancolombia.factory.ModuleBuilder; | ||
import co.com.bancolombia.factory.ModuleFactory; | ||
import java.io.IOException; | ||
|
||
public class ObjectMapperFactory implements ModuleFactory { | ||
|
||
@Override | ||
public void buildModule(ModuleBuilder builder) throws IOException, CleanException { | ||
builder.setupFromTemplate("commons/object-mapper"); | ||
builder.appendDependencyToModule( | ||
"app-service", | ||
"compile 'org.reactivecommons.utils:object-mapper:" | ||
+ Constants.RCOMMONS_OBJECT_MAPPER_VERSION | ||
+ "'"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"folders": [], | ||
"files": { | ||
"commons/object-mapper/object-mapper-config.java.mustache": "applications/app-service/src/main/java/{{packagePath}}/config/ObjectMapperConfig.java" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/resources/commons/object-mapper/object-mapper-config.java.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package {{package}}.config; | ||
|
||
import org.reactivecommons.utils.ObjectMapper; | ||
import org.reactivecommons.utils.ObjectMapperImp; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class ObjectMapperConfig { | ||
@Bean | ||
public ObjectMapper objectMapper() { | ||
return new ObjectMapperImp(); | ||
} | ||
|
||
} |
4 changes: 3 additions & 1 deletion
4
src/main/resources/driven-adapter/redis-reactive/redis-repository/build.gradle.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
dependencies { | ||
compile project(':model') | ||
compile 'org.springframework.boot:spring-boot-starter-data-redis-reactive' | ||
compile 'org.reactivecommons.utils:object-mapper:0.1.0' | ||
implementation 'org.reactivecommons.utils:object-mapper-api:{{objectMapperVersion}}' | ||
testCompile 'org.reactivecommons.utils:object-mapper:{{objectMapperVersion}}' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/main/resources/driven-adapter/redis/redis-repository/build.gradle.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
dependencies { | ||
compile project(':model') | ||
compile 'org.springframework.boot:spring-boot-starter-data-redis' | ||
compile 'org.reactivecommons.utils:object-mapper:0.1.0' | ||
implementation 'org.reactivecommons.utils:object-mapper-api:{{objectMapperVersion}}' | ||
testCompile 'org.reactivecommons.utils:object-mapper:{{objectMapperVersion}}' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters