1 package org.exolab.castor.xml;
2
3 import org.castor.mapping.BindingType;
4 import org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl;
5 import org.exolab.castor.xml.util.resolvers.CastorXMLStrategy;
6
7
8
9
10
11
12
13
14 public class ClassDescriptorResolverFactory {
15
16
17
18
19
20
21 public static ClassDescriptorResolver createClassDescriptorResolver(final BindingType type) {
22 if (type == BindingType.XML) {
23 XMLClassDescriptorResolver resolver = new XMLClassDescriptorResolverImpl();
24
25
26 resolver.setResolverStrategy(new CastorXMLStrategy());
27 return resolver;
28 }
29
30 return null;
31 }
32 }