]
Jeff Mesnil reassigned WFCORE-1831:
-----------------------------------
Assignee: Tomaz Cerar (was: Brian Stansberry)
Build XML parser from a resource's pathElement
----------------------------------------------
Key: WFCORE-1831
URL:
https://issues.jboss.org/browse/WFCORE-1831
Project: WildFly Core
Issue Type: Enhancement
Components: Domain Management
Affects Versions: 3.0.0.Alpha8
Reporter: Jeff Mesnil
Assignee: Tomaz Cerar
The current PersistentResourceXMLBuilder API requires to pass a ResourceDefinition to
build the XML representation to parse and marshall. This requires to provides static
ResourceDefinition which may be impratical if the resource model can be affected by the
runtime state.
The PersistentResourceXMLDescription only relies on the resourceDefinition's
pathElement to know the "name" of the resource. The list of attributes to map to
XML is provided explicitly to the builder.
The PersistentResourceXMLBuilder API should be modified to use only a PathElement and
remove its reference to resourceDefinition.
For compatibility the current builder method with PersistentResourceDefinition must be
kept and delegate to the new one.