View Javadoc

1   /*
2    * Copyright 2008-2013 smartics, Kronseder & Reiner GmbH
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 de.smartics.maven.issues;
17  
18  import org.apache.maven.artifact.versioning.ArtifactVersion;
19  import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
20  
21  /**
22   * Default implementation that uses Maven's {@link DefaultArtifactVersion}
23   * implementation.
24   *
25   * @author <a href="mailto:robert.reiner@smartics.de">Robert Reiner</a>
26   * @version $Revision:591 $
27   */
28  public abstract class AbstractVersionFactory implements VersionFactory
29  {
30    // ********************************* Fields *********************************
31  
32    // --- constants ------------------------------------------------------------
33  
34    // --- members --------------------------------------------------------------
35  
36    // ****************************** Initializer *******************************
37  
38    // ****************************** Constructors ******************************
39  
40    /**
41     * Abstract class constructor.
42     */
43    protected AbstractVersionFactory()
44    {
45    }
46  
47    // ****************************** Inner Classes *****************************
48  
49    // ********************************* Methods ********************************
50  
51    // --- init -----------------------------------------------------------------
52  
53    // --- get&set --------------------------------------------------------------
54  
55    // --- business -------------------------------------------------------------
56  
57    /**
58     * {@inheritDoc}
59     *
60     * @see de.smartics.maven.issues.VersionFactory#createVersion(java.lang.String)
61     */
62    public ArtifactVersion createVersion(final String versionString)
63    {
64      return new DefaultArtifactVersion(versionString);
65    }
66  
67    // --- object basics --------------------------------------------------------
68  
69  }