1 /*
2 * Copyright 2005 Werner Guttmann
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.castor.mapping;
17
18
19 import org.apache.commons.logging.Log;
20 import org.apache.commons.logging.LogFactory;
21
22 /**
23 * An XML-specific factory for acquiring MappingLoader instances.
24 *
25 * @author <a href="mailto:werner DOT guttmann AT gmx DOT net">Werner Guttmann</a>
26 * @version $Revision: 5951 $ $Date: 2006-04-13 10:49:49 -0600 (Thu, 13 Apr
27 * 2006) $
28 * @since 1.0.4
29 */
30 public class XMLMappingLoaderFactory extends AbstractMappingLoaderFactory {
31
32 /**
33 * The <a href="http://jakarta.apache.org/commons/logging/">Jakarta Commons
34 * Logging </a> instance used for all logging.
35 */
36 private static final Log LOG = LogFactory.getLog(XMLMappingLoaderFactory.class);
37
38 /** The name of the factory. */
39 public static final String NAME = "XML";
40
41 /**
42 * Class name of the XML mapping loader
43 */
44 private static final String CLASS_NAME = "org.exolab.castor.xml.XMLMappingLoader";
45
46 /**
47 * @inheritDoc
48 * @see org.castor.mapping.MappingLoaderFactory#getName()
49 */
50 public final String getName() {
51 return NAME;
52 }
53
54 /**
55 * @inheritDoc
56 * @see org.castor.mapping.AbstractMappingLoaderFactory#getClassname()
57 */
58 public String getClassname() {
59 return CLASS_NAME;
60 }
61
62 /**
63 * @inheritDoc
64 * @see org.castor.mapping.MappingLoaderFactory#getBindingType()
65 */
66 public BindingType getBindingType() {
67 return BindingType.XML;
68 }
69
70 }