* @author Paul Ferraro
*/
public class AttributeMarshallerFactory {
public static AttributeMarshaller createSimpleListAttributeMarshaller() {
return new AttributeMarshaller() {
@Override
public void marshallAsElement(AttributeDefinition attribute, ModelNode resourceModel, boolean marshallDefault, XMLStreamWriter writer) throws XMLStreamException {
// Hack to workaround the fact that SimpleListAttributeDefinition lacks a marshallAsAttribute(...) method!
this.marshallAsAttribute(attribute, resourceModel, marshallDefault, writer);
}