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