Package org.apache.maven.classrealm
Class DefaultClassRealmRequest
java.lang.Object
org.apache.maven.classrealm.DefaultClassRealmRequest
- All Implemented Interfaces:
ClassRealmRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.classrealm.ClassRealmRequest
ClassRealmRequest.RealmType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ClassRealmConstituent>
private final Map<String,
ClassLoader> private final ClassLoader
private final ClassRealmRequest.RealmType
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultClassRealmRequest
(ClassRealmRequest.RealmType type, ClassLoader parent, List<String> parentImports, Map<String, ClassLoader> foreignImports, List<ClassRealmConstituent> constituents) -
Method Summary
Modifier and TypeMethodDescriptionGets the constituents for the class realm.Gets the packages/types to import from foreign realms.Gets the parent class realm (if any).Gets the packages/types to import from the parent realm.getType()
Gets the type of the class realm.
-
Field Details
-
type
-
parent
-
parentImports
-
foreignImports
-
constituents
-
-
Constructor Details
-
DefaultClassRealmRequest
DefaultClassRealmRequest(ClassRealmRequest.RealmType type, ClassLoader parent, List<String> parentImports, Map<String, ClassLoader> foreignImports, List<ClassRealmConstituent> constituents)
-
-
Method Details
-
getType
Description copied from interface:ClassRealmRequest
Gets the type of the class realm.- Specified by:
getType
in interfaceClassRealmRequest
- Returns:
- The type of the class realm, never
null
.
-
getParent
Description copied from interface:ClassRealmRequest
Gets the parent class realm (if any).- Specified by:
getParent
in interfaceClassRealmRequest
- Returns:
- The parent class realm or
null
if using the default parent.
-
getImports
- Specified by:
getImports
in interfaceClassRealmRequest
-
getParentImports
Description copied from interface:ClassRealmRequest
Gets the packages/types to import from the parent realm.- Specified by:
getParentImports
in interfaceClassRealmRequest
- Returns:
- The modifiable list of packages/types to import from the parent realm, never
null
.
-
getForeignImports
Description copied from interface:ClassRealmRequest
Gets the packages/types to import from foreign realms.- Specified by:
getForeignImports
in interfaceClassRealmRequest
- Returns:
- The modifiable map of packages/types to import from foreign realms, never
null
.
-
getConstituents
Description copied from interface:ClassRealmRequest
Gets the constituents for the class realm.- Specified by:
getConstituents
in interfaceClassRealmRequest
- Returns:
- The modifiable list of constituents for the class realm, never
null
.
-