java api object construction mental problems, and inconsistencies
![]()
I am still having mental problems with the object construction model.
why doesn't new just work?
can't you wrapper all this blahblahblahClass.ITEM_TYPE.createItem();
(which doesn't work for Iflow* objects anyhow)
into the class constructor to save everyone nine million lines of code? and minimize the learning complexity.
|
One answer
![]()
Ralph Schoon (62.0k●3●36●43)
| answered Feb 07 '14, 3:01 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Sam,
this stuff is based on EMF, which uses factory classes and the like. Most of the interfaces etc are generated. EMF does not provide public constructors. I am assuming that this is the reason. |