Java

Java is another programming language, which is extremely popular these days. Used not only for desktop applications, but also in the web applications in the embedded devices or on the mobile phones and tablets (Android being a notable case), Apache Thrift is used in all of those scenarios.

Generating the code

Apache Thrift's compiler offers lots of options for Java. Run the following command to see them:

$ thrift --help 

Look for the information about Java generators:

  java (Java):
    beans:           Members will be private, and setter methods will return void.
    private-members: Members will be private, but setter methods will return 'this' like usual.
    nocamel:         Do not use CamelCase field accessors with beans.
 fullcamel: Convert underscored_accessor_or_service_names ...

Get Learning Apache Thrift now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.