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.bugzilla;
17  
18  import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException;
19  
20  import de.smartics.maven.issues.AbstractVersionFactory;
21  import de.smartics.maven.issues.ArtifactVersionRange;
22  
23  /**
24   * Implementation of the version factory for Bugzilla.
25   *
26   * @author <a href="mailto:robert.reiner@smartics.de">Robert Reiner</a>
27   * @version $Revision:591 $
28   */
29  public class BugzillaVersionFactory extends AbstractVersionFactory
30  {
31    // ********************************* Fields *********************************
32  
33    // --- constants ------------------------------------------------------------
34  
35    // --- members --------------------------------------------------------------
36  
37    // ****************************** Initializer *******************************
38  
39    // ****************************** Constructors ******************************
40  
41    // ****************************** Inner Classes *****************************
42  
43    // ********************************* Methods ********************************
44  
45    // --- init -----------------------------------------------------------------
46  
47    // --- get&set --------------------------------------------------------------
48  
49    // --- business -------------------------------------------------------------
50  
51    /**
52     * {@inheritDoc}
53     *
54     * @throws InvalidVersionSpecificationException
55     * @see de.smartics.maven.issues.VersionFactory#createRange(java.lang.String)
56     */
57    public ArtifactVersionRange createRange(final String versionSpecification)
58      throws InvalidVersionSpecificationException
59    {
60      return new BugzillaVersionRange(versionSpecification);
61    }
62  
63    // --- object basics --------------------------------------------------------
64  
65  }