-
Notifications
You must be signed in to change notification settings - Fork 0
alexeagle/rich-java-proto
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
If you use Protocol Buffers in Java, you've used the API exposed by the generated Java classes that represent your data model. And chances are good that you've wanted to add additional behavior to those classes, like simple synthetic properties based on the fields defined in your .proto file, like User#isAwesome(). Putting this code in a helper class, with static methods or delegating to an instance of the proto, is a reasonable solution, but I'd rather have the behavior live with the data, like a traditional Object-Oriented pattern. This library attempts to find your helper code and inline it into the generated code produced by protoc.
About
Add behavior to your generated Java Protocol Buffer classes
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published