Importing service functions (simulation multiple inheritance)
-------------------------------------------------------------
Key: THRIFT-795
URL: https://issues.apache.org/jira/browse/THRIFT-795
Project: Thrift
Issue Type: New Feature
Reporter: Jan Dolecek
Priority: Minor
Hello,
based on my thread in mailing list ("multiple inharitance of services" on
thrift-dev) I've prepared experimenal patch
(http://helemik.cz/juzna/opensource/php/thrift/import.patch)
You can see my problems at
http://mail-archives.apache.org/mod_mbox/incubator-thrift-dev/201005.mbox/%[email protected]%3e
My example solution:
service Mikrotik extends ap.AccessPoint { // Same as before
// Diagnostics
import diag.Diagnostics // this is new, imports functions from diag.thrift
file, service Diagnostics
// Blocking users
import block.Blocking // this is new
void dummy(1: string params)
}
"Import" directive just copies methods from parent services to the new one. It
includes any parents if imported services.
What do you think about it?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.