[MAGNOLIA-2897] Introduce a simpler api to build nodes/properties Created: 14/Oct/09  Updated: 23/Jan/13  Resolved: 13/Nov/09

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: None
Fix Version/s: 4.2

Type: New Feature Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
supersession
supersedes MAGNOLIA-2828 Node Builder Task Closed
Template:
Acceptance criteria:
Empty

 Description   

We've had the need several times for a simple node building api - especially in version handlers - to construct relatively simple nodes (couple of nodes, couple of properties) without having to maintain complex bootstrap or properties file, and verbose/long code.

We'll introduce a simple DSL/API similar to the one used to build tasks and deltas for this. Hopefully this will be easy-to-use and follow some of the "fluent" principles.

A starting point was proposed at MAGNOLIA-2828; after some discussion we've adapted it and came up with a slightly different implementation.



 Comments   
Comment by Magnolia International [ 16/Oct/09 ]

TODO: exception handling (with customizable behaviour)

Comment by Magnolia International [ 13/Nov/09 ]

This is now available; the api might change in the future, as there are a few things we're not totally happy with.

Generated at Mon Feb 12 03:41:11 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.