Enhancement #2545
Avoid double converter registration warning.
Status: | Resolved | Start date: | 05/10/2016 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | Java | |||
Target version: | rsb-0.13 |
Description
Please remove this annoying message during converter registration:
WARNING: Converter with signature ConverterSignature [schema=.rct.FrameTransform, datatype=class rct.Transform] already registered in DefaultConverterRepository. Existing entry will be overwritten!
Because there is no method to check if a converter was already registered by other components within the same vm there is no way to avoid this message without centralized converter loading.
Associated revisions
Make DefaultConverterRepository thread-safe
Use a ConcurrentHashMap instead of a normal one. Also reduce the
visibility of the warning message in case a converter is replaced and
document the replacing behavior.
(cherry picked from commit 0dce4827849d40bc3fcfbf6b3427b271862e2d67)
DefaultConverterRepository: expose registered converters
Adds a method to inspect the registered converters.
refs #2545
DefaultConverterRepository: expose registered converters
Adds a method to inspect the registered converters.
refs #2545
(cherry picked from commit fdb9f7fc3ec11c2928162f18c85b83df729ee3b7)
History
#1 Updated by J. Wienke almost 7 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset rsb-java|0dce4827849d40bc3fcfbf6b3427b271862e2d67.