1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.internal.impl.types;
20
21 import javax.inject.Named;
22 import javax.inject.Provider;
23 import javax.inject.Singleton;
24
25 import org.apache.maven.api.DependencyProperties;
26 import org.apache.maven.api.Type;
27 import org.apache.maven.internal.impl.DefaultDependencyProperties;
28 import org.apache.maven.internal.impl.DefaultType;
29
30 @Named(JarTypeProvider.NAME)
31 @Singleton
32 public class JarTypeProvider implements Provider<Type> {
33 public static final String NAME = "jar";
34
35 private final Type type;
36
37 public JarTypeProvider() {
38 this.type = new DefaultType(
39 NAME, "jar", null, new DefaultDependencyProperties(DependencyProperties.FLAG_CLASS_PATH_CONSTITUENT));
40 }
41
42 @Override
43 public Type get() {
44 return type;
45 }
46 }