Difference between revisions of "Code Discussion 2009-05-25"
Jump to navigation
Jump to search
m (→Next topic) |
|||
Line 28: | Line 28: | ||
[[Code_Discussion_2009-06-22 | Next topic 2009-06-22]] | [[Code_Discussion_2009-06-22 | Next topic 2009-06-22]] | ||
[[Category: | [[Category:Code_Discussion|Code 2009-05-28]] |
Latest revision as of 12:40, 4 September 2009
Previous topic[edit]
Intelligent Value Objects[edit]
Example: User Groups[edit]
- Example class diagram for an intelligent UserGroup VO
- VO contains standard getters and setters
- Additionally: Static inner factory class for calling coreservice methods and processing XML transformations
- Additionally: object methods that call the factory methods
- Easier handling of VO objects
- Advantages:
- User does not have to struggle with XML transformation and coreservice methods
- Less code
Suggestions[edit]
- Constructor for retrieving object?
Outcome[edit]
- Change Exception handling (RuntimeException instead of Exception)
- Make all coreservice methods object-related, also the retrieve method. Factory is only private.
- Find a more generic way for marshalling/unmarshalling methods