-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DynamicPackageOutputManager and its implementation #266
DynamicPackageOutputManager and its implementation #266
Conversation
28f1d52
to
da83f68
Compare
public interface MultiPackageOutputManager extends OutputManager | ||
{ | ||
/** | ||
* Sets the current package name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to define the scope in which the package change applies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
javadoc added.
/** | ||
* Extended version of the OutputManager allowing to set the java package. | ||
*/ | ||
public interface MultiPackageOutputManager extends OutputManager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really "multi"? More like "switchable" or something that indicates use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages are used to group, organize or distinguish. In this sense the following comes to my mind:
(Code)OrganizingOutputManager
, DynamicPackageOutputManager
, GroupingOutputManager
, PackageControlledOutputManager
, SwitchablePackageOutputManager
, SelectablePackageOutputManager
, or NamedPackageOutputManager
, PackageGovernedOutputManager
, PackageAwareOutputManager
I think I prefer selectable, or dynamic or PackageGoverned...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DynamicPackageOutputManger
is probably one of the better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, renamed.
agrona/src/main/java/org/agrona/generation/StringWriterOutputManager.java
Outdated
Show resolved
Hide resolved
agrona/src/main/java/org/agrona/generation/PackageGovernedOutputManager.java
Outdated
Show resolved
Hide resolved
@mjpt777 is there a way to reference the merged (snapshot) version of agrona from SBE's PR? Or should I just wait a couple of days till a release is published? |
This can only be done locally. |
As a preparation, and with the assumption that real-logic/simple-binary-encoding#904 will receive no major changes, I'd like to propose to merge this PR for the upcoming version of agrona.