1 package org.apache.maven.classrealm;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.util.List;
23 import java.util.Map;
24
25
26
27
28 class DefaultClassRealmRequest
29 implements ClassRealmRequest
30 {
31
32 private final RealmType type;
33
34 private final ClassLoader parent;
35
36 private final List<String> parentImports;
37
38 private final Map<String, ClassLoader> foreignImports;
39
40 private final List<ClassRealmConstituent> constituents;
41
42 DefaultClassRealmRequest( RealmType type, ClassLoader parent, List<String> parentImports,
43 Map<String, ClassLoader> foreignImports, List<ClassRealmConstituent> constituents )
44 {
45 this.type = type;
46 this.parent = parent;
47 this.parentImports = parentImports;
48 this.foreignImports = foreignImports;
49 this.constituents = constituents;
50 }
51
52 public RealmType getType()
53 {
54 return type;
55 }
56
57 public ClassLoader getParent()
58 {
59 return parent;
60 }
61
62 public List<String> getImports()
63 {
64 return getParentImports();
65 }
66
67 public List<String> getParentImports()
68 {
69 return parentImports;
70 }
71
72 public Map<String, ClassLoader> getForeignImports()
73 {
74 return foreignImports;
75 }
76
77 public List<ClassRealmConstituent> getConstituents()
78 {
79 return constituents;
80 }
81
82 }