com.itelg.spring.xom.marshaller.configuration.SpringXomMarshallerConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-xom-marshaller Show documentation
Show all versions of spring-xom-marshaller Show documentation
Spring XML Marshalling with XOM
package com.itelg.spring.xom.marshaller.configuration;
import java.util.List;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.itelg.spring.xom.marshaller.XomMarshaller;
import com.itelg.spring.xom.marshaller.writer.Writer;
@Configuration
public class SpringXomMarshallerConfiguration
{
@ConditionalOnMissingBean
@Bean
public XomMarshaller xomMarshaller(List> writers)
{
return new XomMarshaller(writers);
}
}