com.itelg.spring.xom.unmarshaller.configuration.SpringXomUnmarshallerConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-xom-unmarshaller Show documentation
Show all versions of spring-xom-unmarshaller Show documentation
Spring XML Unmarshalling with XOM
package com.itelg.spring.xom.unmarshaller.configuration;
import java.util.List;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.itelg.spring.xom.unmarshaller.XomUnmarshaller;
import com.itelg.spring.xom.unmarshaller.parser.Parser;
@Configuration
public class SpringXomUnmarshallerConfiguration
{
@Bean
@ConditionalOnMissingBean
@ConditionalOnBean(Parser.class)
public XomUnmarshaller xomUnmarshaller(List> parsers)
{
return new XomUnmarshaller(parsers);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy