/[Apache-SVN]
ViewVC logotype

Revision 738708


Jump to revision: Previous Next
Author: bryanduxbury
Date: Thu Jan 29 01:51:08 2009 UTC (15 years, 9 months ago)
Changed paths: 13
Log Message:
THRIFT-253. java: Enhance FieldMetaData

The code generator new creates a static map of field id to metadata for each field, including information like the field TType, class of embedded structs, required/optional/default, etc. Additionally, on loading, generated classes statically register their class and metadata map with the global FieldMetaData map, so you can get the metadata for any TBase-implementing class easily.

Changed paths

Path Details
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_java_generator.cc modified , text changed
Directoryincubator/thrift/trunk/lib/java/build.xml modified , text changed
Directoryincubator/thrift/trunk/lib/java/src/org/apache/thrift/FieldMetaData.java modified , text changed
Directoryincubator/thrift/trunk/lib/java/src/org/apache/thrift/TFieldRequirementType.java added
Directoryincubator/thrift/trunk/lib/java/src/org/apache/thrift/meta_data/ added
Directoryincubator/thrift/trunk/lib/java/src/org/apache/thrift/meta_data/FieldMetaData.java added
Directoryincubator/thrift/trunk/lib/java/src/org/apache/thrift/meta_data/FieldValueMetaData.java added
Directoryincubator/thrift/trunk/lib/java/src/org/apache/thrift/meta_data/ListMetaData.java added
Directoryincubator/thrift/trunk/lib/java/src/org/apache/thrift/meta_data/MapMetaData.java added
Directoryincubator/thrift/trunk/lib/java/src/org/apache/thrift/meta_data/SetMetaData.java added
Directoryincubator/thrift/trunk/lib/java/src/org/apache/thrift/meta_data/StructMetaData.java added
Directoryincubator/thrift/trunk/lib/java/test/org/apache/thrift/test/MetaDataTest.java added
Directoryincubator/thrift/trunk/test/ThriftTest.thrift modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26