View Javadoc
1   package org.castor.xml;
2   
3   import org.exolab.castor.xml.util.DefaultNaming;
4   import org.springframework.context.annotation.Bean;
5   import org.springframework.context.annotation.Configuration;
6   
7   @Configuration
8   public class XmlConfigurations {
9   
10    @Bean(name = "javaNamingImpl")
11    JavaNaming javaNamingImpl() {
12      return new JavaNamingImpl();
13    }
14  
15    @Bean(name = "javaNamingNG")
16    JavaNaming javaNamingNGImpl() {
17      return new JavaNamingNGImpl();
18    }
19  
20    @Bean
21    XMLNaming xmlNaming() {
22      return new DefaultNaming();
23    }
24  
25  }