thrift: generate server interface factory classes
---------------------------------------------------
Key: THRIFT-1315
URL: https://issues.apache.org/jira/browse/THRIFT-1315
Project: Thrift
Issue Type: Improvement
Components: C++ - Library
Reporter: Dave Watson
Priority: Minor
Attachments:
0026-thrift-generate-server-interface-factory-classes.patch
>From 58121fb3ac477e83811e7b8013dd3fa6a925d985 Mon Sep 17 00:00:00 2001
From: Adam Simpkins <[email protected]>
Date: Mon, 19 Apr 2010 19:09:21 +0000
Subject: [PATCH 26/33] thrift: generate server interface factory classes
Summary:
The C++ generator now generates an abstract factory class definition for
all server interface classes. A singleton factory implementation is
always defined, which always returns a pointer to the same object.
Test Plan:
Generated code with cob_style and templates enabled, and everything
still compiles.
Revert Plan:
OK
---
compiler/cpp/src/generate/t_cpp_generator.cc | 161 ++++++++++++++++++++++++++
lib/cpp/src/TProcessor.h | 28 +++++
2 files changed, 189 insertions(+), 0 deletions(-)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira