Bug 150938 - [api] PropertyType should provide static factory methods
Summary: [api] PropertyType should provide static factory methods
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.0   Edit
Assignee: David Dykstal CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2006-07-18 08:46 EDT by Martin Oberhuber CLA
Modified: 2008-08-13 13:05 EDT (History)
0 users

See Also:


Attachments
Patch for using static factory methods in PropertyType (8.94 KB, patch)
2006-07-18 08:47 EDT, Martin Oberhuber CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2006-07-18 08:46:15 EDT
PropertyType should provide static factory methods, in order to
 * reduce the number of objects being created,
 * make sure that only allowed values can be set for the int _type field
Comment 1 Martin Oberhuber CLA 2006-07-18 08:47:38 EDT
Created attachment 46436 [details]
Patch for using static factory methods in PropertyType

Attached patch changes PropertyType to use static factory methods and a private constructor.
Comment 2 Martin Oberhuber CLA 2006-07-18 08:47:51 EDT
Applied the patch - please review
Comment 3 David Dykstal CLA 2006-09-13 09:18:16 EDT
Looks good.
Comment 4 Martin Oberhuber CLA 2008-08-13 13:05:57 EDT
[target cleanup] 1.0 M4 was the original target milestone for this bug