Adding support for the package attribute on the types element. by ratcashdev · Pull Request #904 · aeron-io/simple-binary-encoding (original) (raw)

Implementation of #507 for Java.

The main idea is that we store the package attribute read from the XML to the IR, into token[0]. Then it's up to the generator to make use of that extra piece of information (controllable through sbe.type.package.override argument, defaulting to false ).

The serialization of the IR is not touched, therefore the package information is not present in the serialized IR.

Some classes in this PR, like the MultiPackageOutputManager and StringWriterOutputManager actually belong to agrona, but have been implemented here to have a testable code.
Before merging, those files/classes should be moved and substituted with a new release of agrona.