Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Patch Available
Description
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/%3CAANLkTillWh6cA79oxMqXkT8U0hBitsmUmUUscRTi4B_1@mail.gmail.com%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?