-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
delayed mass production trigger, see #106
- Loading branch information
1 parent
4f80238
commit bfaaf05
Showing
5 changed files
with
49 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<configuration> | ||
<include resource="org/springframework/boot/logging/logback/base.xml"/> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
|
||
</configuration> |
23 changes: 23 additions & 0 deletions
23
serializer/core/src/main/kotlin/converter/GenericDataRecordToSingleObjectEncodedConverter.kt
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,23 @@ | ||
package io.holixon.axon.avro.serializer.converter | ||
|
||
import io.toolisticon.kotlin.avro.AvroKotlin | ||
import io.toolisticon.kotlin.avro.codec.GenericRecordCodec | ||
import io.toolisticon.kotlin.avro.value.SingleObjectEncodedBytes | ||
import mu.KLogging | ||
import org.apache.avro.generic.GenericRecord | ||
import org.axonframework.serialization.ContentTypeConverter | ||
|
||
class GenericDataRecordToSingleObjectEncodedConverter : ContentTypeConverter<GenericRecord, SingleObjectEncodedBytes> { | ||
|
||
companion object : KLogging() | ||
|
||
override fun expectedSourceType(): Class<GenericRecord> = GenericRecord::class.java | ||
|
||
override fun targetType(): Class<SingleObjectEncodedBytes> = SingleObjectEncodedBytes::class.java | ||
|
||
override fun convert(original: GenericRecord): SingleObjectEncodedBytes { | ||
// TODO: we (sh|c)ould make genericData/conversions configurable ... maybe. | ||
logger.trace { "Generic record: $original" } | ||
return GenericRecordCodec.encodeSingleObject(record = original, genericData = AvroKotlin.genericData) | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
serializer/spring-autoconfigure/src/test/resources/logback-spring.xml
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,14 @@ | ||
<configuration> | ||
<include resource="org/springframework/boot/logging/logback/base.xml"/> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="STDOUT"/> | ||
</root> | ||
|
||
|
||
<!-- | ||
<logger name="org.testcontainers" level="WARN"/> | ||
<logger name="tc.axonserver" level="WARN"/> | ||
<logger name="org.springframework.core.annotation.AnnotationTypeMapping" level="ERROR"/> | ||
--> | ||
</configuration> |
19 changes: 0 additions & 19 deletions
19
serializer/spring-autoconfigure/src/test/resources/logback-test.xml
This file was deleted.
Oops, something went wrong.