org.infinispan.persistence.jpa.configuration.JpaStoreConfigurationSerializer Maven / Gradle / Ivy
package org.infinispan.persistence.jpa.configuration;
import javax.xml.stream.XMLStreamException;
import org.infinispan.configuration.serializing.AbstractStoreSerializer;
import org.infinispan.configuration.serializing.ConfigurationSerializer;
import org.infinispan.configuration.serializing.XMLExtendedStreamWriter;
/**
* JpaStoreConfigurationSerializer.
*
* @since 9.0
* @author Tristan Tarrant
*/
public class JpaStoreConfigurationSerializer extends AbstractStoreSerializer implements ConfigurationSerializer {
@Override
public void serialize(XMLExtendedStreamWriter writer, JpaStoreConfiguration configuration) throws XMLStreamException {
writer.writeStartElement(Element.JPA_STORE);
configuration.attributes().write(writer);
writeCommonStoreSubAttributes(writer, configuration);
writeCommonStoreElements(writer, configuration);
writer.writeEndElement();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy