Sadly, no, service methods cannot return service instances. On Mon, Aug 16, 2010 at 1:57 PM, EY Tsai <[email protected]> wrote:
> Hi,
>
> I'm new to Thrift. Is it possible. Or any way around? Something like below
>
> struct Item {
> 1: string key,
> 2: string value
> }
>
> service Store {
> Item get(1: string key),
> Item save(1: string key, 2: Item e),
> }
>
> service StoreManager {
> Store getStore(1: String storeName),
> Store createStore(1: String storeName)
> }
>
>
> Thanks.
>
