You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2013/06/03 18:39:20 UTC
[jira] [Created] (THRIFT-1993) Factory to create instances from
known (generated) interface types with Delphi
Jens Geyer created THRIFT-1993:
----------------------------------
Summary: 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