View Javadoc
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  /**
20   * An JDO-specific factory for acquiring MappingLoader instances.
21   *
22   * @author <a href="mailto:werner DOT guttmann AT gmx DOT net">Werner Guttmann</a>
23   * @version $Revision: 5951 $ $Date: 2006-04-13 10:49:49 -0600 (Thu, 13 Apr 2006) $
24   * @since 1.0.4
25   */
26  public class JDOMappingLoaderFactory extends AbstractMappingLoaderFactory {
27  
28      /** The name of the factory. */
29      public static final String NAME = "JDO";
30  
31      /**
32       * Class name of the JDO mapping loader
33       */
34      private static final String CLASS_NAME = "org.exolab.castor.jdo.engine.JDOMappingLoader";
35  
36      /**
37       * @see org.castor.mapping.MappingLoaderFactory#getName()
38       */
39      public String getName() { return NAME; }
40  
41      /**
42       * @inheritDoc
43       * @see org.castor.mapping.AbstractMappingLoaderFactory#getClassname()
44       */
45      public String getClassname() {
46          return CLASS_NAME;
47      }
48  
49      /**
50       * @inheritDoc
51       * @see org.castor.mapping.MappingLoaderFactory#getBindingType()
52       */
53      public BindingType getBindingType() {
54          return BindingType.JDO;
55      }
56  
57  }
58