package org.zwobble.mammoth.tests.docx; import com.google.common.collect.ImmutableMap; import com.natpryce.makeiteasy.Instantiator; import com.natpryce.makeiteasy.Property; import com.natpryce.makeiteasy.PropertyLookup; import org.zwobble.mammoth.docx.BodyXmlReader; import org.zwobble.mammoth.docx.Styles; import static com.natpryce.makeiteasy.Property.newProperty; public class BodyXmlReaderMakers { public static final Property STYLES = newProperty(); public static final Instantiator bodyReader = new Instantiator() { @Override public BodyXmlReader instantiate(PropertyLookup propertyLookup) { return new BodyXmlReader( propertyLookup.valueOf(STYLES, new Styles(ImmutableMap.of(), ImmutableMap.of()))); } }; }