It's all about the answers!

Ask a question

java api object construction mental problems, and inconsistencies

sam detweiler (12.5k6195201) | asked Feb 05 '14, 5:33 p.m.
 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

permanent link
Ralph Schoon (63.2k33646) | answered Feb 07 '14, 3:01 a.m.

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.

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.