[
https://issues.apache.org/jira/browse/THRIFT-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jake Farrell closed THRIFT-795.
-------------------------------
Resolution: Fixed
Closing ticket due to inactivity, if you would like to reopen withe a patch
please see http://thrift.apache.org/docs/HowToContribute/
> 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
> Original Estimate: 2m
> Remaining Estimate: 2m
>
> 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 was sent by Atlassian JIRA
(v6.1.5#6160)