Enhancement #2545

Avoid double converter registration warning.

Added by M. Pohling almost 8 years ago. Updated almost 8 years ago.

Status:ResolvedStart date:05/10/2016
Priority:NormalDue 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

Revision 0dce4827
Added by J. Wienke almost 8 years ago

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.

fixes #2545
fixes #2544

Revision cd07c3d6
Added by J. Wienke almost 8 years ago

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.

fixes #2545
fixes #2544

(cherry picked from commit 0dce4827849d40bc3fcfbf6b3427b271862e2d67)

Revision fdb9f7fc
Added by J. Wienke almost 8 years ago

DefaultConverterRepository: expose registered converters

Adds a method to inspect the registered converters.

refs #2545

Revision 4934f0f5
Added by J. Wienke almost 8 years ago

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 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF