[
https://issues.apache.org/jira/browse/THRIFT-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer resolved THRIFT-1993.
--------------------------------
Resolution: Fixed
Committed.
> Factory to create instances from known (generated) interface types with Delphi
> ------------------------------------------------------------------------------
>
> Key: THRIFT-1993
> URL: https://issues.apache.org/jira/browse/THRIFT-1993
> Project: Thrift
> Issue Type: Improvement
> Components: Delphi - Compiler, Delphi - Library
> Environment: Windows
> Reporter: Jens Geyer
> Assignee: Jens Geyer
> Fix For: 1.0
>
> Attachments:
> THRIFT-1993-Delphi-Factory-to-create-instance-from-known-interface.patch
>
>
> Feature to optionally create code which registers Thrift-generated Delphi
> interfaces with their implementing classes. This enables the developer to
> easily create an entity based on the known interface types and/or create
> thrift entities within generic classes more easily:
> {code}
> var thing : IThing;
> begin
> thing := TypeRegistry.Construct<IThing>;
> // do something with thing
> end;
> {code}
> Without this feature, one would have to know the class name and write:
> {code}
> var thing : IThing;
> begin
> thing := TThingImpl.Create;
> // do something with thing
> end;
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira