KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > artifact > factory > ArtifactFactory


1 package org.apache.maven.artifact.factory;
2
3 /*
4  * Copyright 2001-2005 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 import org.apache.maven.artifact.Artifact;
20 import org.apache.maven.artifact.versioning.VersionRange;
21
22 public interface ArtifactFactory
23 {
24     String JavaDoc ROLE = ArtifactFactory.class.getName();
25     
26     // TODO: deprecate and chase down (probably used for copying only)
27
Artifact createArtifact( String JavaDoc groupId, String JavaDoc artifactId, String JavaDoc version, String JavaDoc scope, String JavaDoc type );
28
29     Artifact createArtifactWithClassifier( String JavaDoc groupId, String JavaDoc artifactId, String JavaDoc version, String JavaDoc type,
30                                            String JavaDoc classifier );
31
32     Artifact createDependencyArtifact( String JavaDoc groupId, String JavaDoc artifactId, VersionRange versionRange, String JavaDoc type,
33                                        String JavaDoc classifier, String JavaDoc scope );
34
35     Artifact createDependencyArtifact( String JavaDoc groupId, String JavaDoc artifactId, VersionRange versionRange, String JavaDoc type,
36                                        String JavaDoc classifier, String JavaDoc scope, boolean optional );
37
38     Artifact createDependencyArtifact( String JavaDoc groupId, String JavaDoc artifactId, VersionRange versionRange, String JavaDoc type,
39                                        String JavaDoc classifier, String JavaDoc scope, String JavaDoc inheritedScope );
40
41     Artifact createDependencyArtifact( String JavaDoc groupId, String JavaDoc artifactId, VersionRange versionRange, String JavaDoc type,
42                                        String JavaDoc classifier, String JavaDoc scope, String JavaDoc inheritedScope, boolean optional );
43
44     Artifact createBuildArtifact( String JavaDoc groupId, String JavaDoc artifactId, String JavaDoc version, String JavaDoc packaging );
45
46     Artifact createProjectArtifact( String JavaDoc groupId, String JavaDoc artifactId, String JavaDoc version );
47
48     Artifact createParentArtifact( String JavaDoc groupId, String JavaDoc artifactId, String JavaDoc version );
49
50     Artifact createPluginArtifact( String JavaDoc groupId, String JavaDoc artifactId, VersionRange versionRange );
51
52     Artifact createProjectArtifact( String JavaDoc groupId, String JavaDoc artifactId, String JavaDoc version, String JavaDoc scope );
53
54     Artifact createExtensionArtifact( String JavaDoc groupId, String JavaDoc artifactId, VersionRange versionRange );
55 }
56
Popular Tags