Direct Field Assignment

Category: JavaSpaceIdioms

In JavaSpace, searchable attributes of entries must be public. As a result, many people do not encapsulate these atrributes with set and get methods. DirectFieldAssignment generally takes the form:

x.field = value


I have tended to use this with JavaSpace entries because of the necessarily public attributes but I'm now questioning whether this is "proper OO" -- JasonYip


EditText of this page (last edited June 20, 2004) or FindPage with title or text search