Bug #1862

No way to specify custom converter selection strategies in java

Added by J. Wienke almost 10 years ago. Updated almost 10 years ago.

Status:ResolvedStart date:04/29/2014
Priority:NormalDue date:
Assignee:J. Wienke% Done:

100%

Category:Java
Target version:rsb-0.11

Description

The current java API does not provide any means of customizing the converter selection strategy for participants.

Associated revisions

Revision 0311a9b5
Added by J. Wienke almost 10 years ago

Specify converters in TransportConfig

Add an attribute to TransportConfig for a ConverterRepository to use
when creating new connector instances. This allows users to manually
specify converter selection strategies apart from the default
implementation.

  • src/rsb/Informer.java: adapt to new TransportFactory API
  • src/rsb/Listener.java: likewise
  • src/rsb/config/TransportConfig.java: include optional converter repo
  • src/rsb/transport/TransportFactory.java: adapt API to include repo
    instance
  • src/rsb/transport/inprocess/InProcessFactory.java: adapted to API
  • src/rsb/transport/socket/SocketFactory.java: likewise
  • src/rsb/transport/spread/SpreadFactory.java: likewise

fixes #1862

Revision 5dc71938
Added by J. Wienke almost 10 years ago

Allow to copy ParticipantConfig instances

Added a copy method to ParticipantConfig so that clients can easily
create new instances from template instances.

refs #1862

Revision 511ab388
Added by J. Wienke almost 10 years ago

New PredicateConverterSelectionStrategy

Adds a new ConverterSelectionStrategy based on predicates

refs #1862

Revision 78784186
Added by J. Wienke almost 10 years ago

Example for custom converter selection strategies

Adds an example that explains how to use custom converter selection
strategies for individual participants.

refs #1862

History

#1 Updated by J. Wienke almost 10 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset rsb-java|commit:0311a9b5adb62d2981b5e69682320c505e9caec8.

#2 Updated by J. Wienke almost 10 years ago

There is now a new example explaining how to use custom converter selection strategies with wildcard conversion for unknown messages.

Also available in: Atom PDF