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
22 public static ClassDescriptorResolver createClassDescriptorResolver(final BindingType type) {
23 if (type == BindingType.XML) {
24 XMLClassDescriptorResolver resolver = new XMLClassDescriptorResolverImpl();
25
26
27 resolver.setResolverStrategy(new CastorXMLStrategy());
28 return resolver;
29 }
30
31 return null;
32 }
33 }